cat /dev/sndstat
. Those are the detected audio devices. You can switch the default audio with sysctl hw.snd.default_unit=<X>
and switch it to an audio card with a speaker/line-out. Connect some speakers (or the line-out to an amplifier) and you should have audio through that. mixer
, but it doesn’t seem to have any effect on my machine. Personally I have set the bell type to “visual” (see kbdcontrol(1)) so the terminal flashes when a program emits '\a' outside of X11. Personally I dislike the mainboard’s simple speaker anyway; it sounds awful. (YMMV, of course.)That is the case. In my desktop there is no speaker. I do not know if that is also the case in the thin client that will be my MusicBox.I think he is talking about spkr(4) (/dev/speaker), and the fact that either his mainboard does not have a speaker connector, or his PC case does not contain a speaker connected to it.
I noticed there is a “speaker” setting in the output frommixer
, but it doesn’t seem to have any effect on my machine
I've seen some implementations that had the speaker output wired up to the audio card. Doesn't seem to be common though, probably because the speaker pretty much lost its function as more and more mainboards have audio cards integrated on them nowadays. In the old days that speaker had a real function besides the diagnostics beeps.I do not know if that is also the case in the thin client that will be my MusicBox.
Oh, you just want to generate sounds for your soundcard (or onboard audio hardware)? Why didn’t you say that in the first place? That’s easy, and you don’t need spkr(4) for that at all.Perhaps I get a way of generating sounds with tcl for communicating with the monitor-less thin client.
sox
(audio/sox).sox -n -d synth 0.2 sine A4
sox -n -d synth 4 pluck A4
sox -n -c1 -d synth sin %-12 sin %-9 sin %-5 sin %-2 fade h 0.1 1 0.1
And sox (play) plays wav and mp3. But unfortunately do not react to arrows. And cannot have athe easiest way is to installsox