RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Problems with audio with emulation station

    Scheduled Pinned Locked Moved Help and Support
    soundsound hdmiretropie
    6 Posts 2 Posters 247 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hosselausso
      last edited by hosselausso

      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.wav

      doesn'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 #3

      Also, 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:
      Screenshot 2025-09-12 at 11.43.42.png

      H 1 Reply Last reply Reply Quote 0
      • H
        hosselausso @hosselausso
        last edited by

        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...

        H 2 Replies Last reply Reply Quote 0
        • H
          hosselausso @hosselausso
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • H
            hosselausso @hosselausso
            last edited by hosselausso

            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
            
            B H 2 Replies Last reply Reply Quote 0
            • B
              barbudreadmon @hosselausso
              last edited by

              @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 running amixer sset HDMI unmute. I'm not too knowledgeable about amixer tbh, i prefer alsamixer.

              FBNeo developer - github - forum

              1 Reply Last reply Reply Quote 0
              • H
                hosselausso @hosselausso
                last edited by

                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!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                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.