On Thu, 3 Jul 2025, Michael van Elst wrote:
p...@whooppee.com (Paul Goyette) writes:
I've got audiocfg(1) configured to use the hdmi output from my video
card:
# audiocfg list | grep '^[0-9]:'
0: [*] audio2 @ hdafg0: NVIDIA product 0051
1: [ ] audio0 @ uaudio0: USB audio
2: [ ] audio1 @ uaudio1: USB audio
3: [ ] audio3 @ hdafg1: ATI R6xx HDMI
#
With this I can play mp3 and m4a audio using mpv from pkgsrc, but
neither firefox nor chromium give me any audio.
What am I doing wrong?
Nothing, this is supposed to work. You may check the symlinks in /dev.
audioctl -> audioctl2
audio -> audio2
sound -> sound2
These are set by 'audiocfg default 0' (index 0 is audio2 for you), but
maybe something was changed afterwards.
Here's what I have - looks right to me.
# ls -l /dev/audioctl /dev/audio /dev/sound
lrwxrwxr-x 1 root wheel 11 Apr 4 16:06 /dev/audio -> /dev/audio2
lrwxrwxr-x 1 root wheel 14 Apr 4 16:06 /dev/audioctl -> /dev/audioctl2
lrwxrwxr-x 1 root wheel 11 Apr 4 16:06 /dev/sound -> /dev/sound2
Maybe I need some special build options for pkgsrc? Here's an
excerpt frm my build loggs:
==========================================================================
The supported build options for firefox are:
alsa dbus debug debug-info jack mozilla-jemalloc
official-mozilla-branding pulseaudio speechd
sunaudio webrtc
The currently selected options are:
alsa dbus pulseaudio sunaudio webrtc
......
==========================================================================
The supported build options for chromium are:
alsa debug pulseaudio sunaudio
The currently selected options are:
alsa
I also notice that both browsers appear to attempt to open /dev/video
resulting in lots of
WARNING: module error: module_load_vfs_vec() failed for `video', error 2
on the console.
+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | 1B11 1849 721C 56C8 F63A | p...@whooppee.com |
| Software Developer | 6E2E 05FD 15CE 9F2D 5102 | pgoye...@netbsd.org |
| & Network Engineer | | pgoyett...@gmail.com |
+---------------------+--------------------------+----------------------+