Sound works with Firefox but not with other programs

Dear Comunity,

I'm having the in the subject described problem.

On Firefox (youtube and other websites) sound works as expected. But when using mpg123, widelands or dosbox, no sound is played or I'm receiving error messages

dosbox:
Code:
ALSA lib seq_hw.c:531:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA:Can't open sequencer
MIDI:Opened device:none

widelands: First is looks successful, but no sound is played. When closing the program via exit:

Code:
[00:00:04.430 real] INFO: **** SOUND REPORT ****
[00:00:04.430 real] INFO: SDL version: 2.32.2
[00:00:04.430 real] INFO: SDL_mixer version: 2.8.1
[00:00:04.430 real] INFO: **** END SOUND REPORT ****
[00:00:04.577 real] INFO: Developer tools are enabled.
[00:00:07.017 real] INFO: Songset: Loaded song "music/intro.ogg"
Waited 5 seconds to close audio. There are some problems here, so killing Widelands. Update your sound driver and/or SDL to fix this problem

mpg123: It behaves as it would play sound, after interrupting via Ctrl-C the following message is shown:

Code:
[src/libout123/libout123.c:out123_play():746] error: Error in writing audio, wrote only 4152 of 4608 (No error: 0?)!

The same problems occurs, when running as root.

cat /dev/sndstat

Code:
Installed devices:
pcm0: <NVIDIA (0x0051) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0051) (HDMI/DP 8ch)> (play)
pcm2: <NVIDIA (0x0051) (HDMI/DP 8ch)> (play)
pcm3: <NVIDIA (0x0051) (HDMI/DP 8ch)> (play)
pcm4: <Realtek ALC897 (Rear Analog 5.1/2.0)> (play/rec) default
pcm5: <Realtek ALC897 (Front Analog)> (play/rec)
pcm6: <Realtek ALC897 (Rear Digital)> (play)
Installed devices from userspace:
dsp: <Virtual OSS> (play/rec)

/etc/rc.conf contains:

Code:
sndiod_enable="YES"

In pavucontrol, I see the the played stream from browser. Other tasks that don't work doesn't appear.
Interestingly, I see the Volume Level only in other, not attached devices like HDMI. On the working device entry, no volume level is indicated, the level bar remains on zero.

I guess there's only a simple configuration problem I don't see. Maybe someone cat give me a hint where to look.

Best regards
Paule
 
In pavucontrol
That's for PulseAudio, yet you are enabling sndiod(8) in rc.conf. Dosbox seems to want to play through ALSA. I think you need to configure everything to use the same sound output. Either OSS (the 'default' audio system of FreeBSD), sndiod(8) or PulseAudio.
 
Many thanks for your tip. I removed pulseaudio and alsa, installed and configured OSS correctly and now it works with firefox and other multimedia programes (games, mpg123).

May you post a hint for a emulation of alsa to run dosbox with sound?

Many thanks and
best regards
Paule
 
Back
Top