Problems with audio with emulation station
-
I have RetroPie on a RPi4. I have problems with audio not working when playing games. I have the Pi connected via HDMI to my TV. It used to work until I did an update recently.
On the console, I do:
$ omxplayer test.wav
and it works via HDMI (I hear the sound on the TV), but
$ speaker-test
or variations trying to load other sounds or targeting all channels like
$ speaker-test --test=wav -w /home/pi/mono.wav
$ speaker-test -c8 --test=wav -w /home/pi/mono.wavdoesn't work, not sure why.
Let me give you some extra info about my system:
$ uname -a
Linux retropie 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux$ cat /proc/asound/modules
0 snd_bcm2835
1 snd_bcm2835$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3Also, using
retropie_setup.sh
configuration/tools/audiosettings I have selected HDMI 1 as output.In /boot/config.txt I have uncommented
hdmi_drive=2
as well.And these are the sound settings on the emulation station:
-
I've done a quick test with headphones through the mini jack connector.
With
speaker-test
or
speaker-test -D plughw:1,0
I hear sound in the headphones. But with
speaker-test -D plughw:0,0
I don't hear any sound anywhere... -
This post is deleted! -
More output debug info:
$ amixer Simple mixer control 'HDMI',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback 293 [99%] [2.93dB] [off] $ amixer cget numid=1 numid=1,iface=MIXER,name='HDMI Playback Volume' ; type=INTEGER,access=rw---R--,values=1,min=-10239,max=400,step=0 : values=293 | dBscale-min=-102.39dB,step=0.01dB,mute=1 $ amixer cget numid=2 numid=2,iface=MIXER,name='HDMI Playback Switch' ; type=BOOLEAN,access=rw------,values=1 : values=off
-
@hosselausso said in Problems with audio with emulation station:
Mono: Playback 293 [99%] [2.93dB] [off]
[off]
might mean the audio channel is muted. I think you can fix this by runningamixer sset HDMI unmute
. I'm not too knowledgeable about amixer tbh, i prefer alsamixer. -
OMG, that was the problem. I had:
amixer Simple mixer control 'HDMI',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback 120 [97%] [1.20dB] [off]
set to
off
So, after doing
amixer sset HDMI unmute
:Simple mixer control 'HDMI',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback 120 [97%] [1.20dB] [on]
Thank you very much!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.