• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

No sound using OMXplayer / Arcade Bonnet

Scheduled Pinned Locked Moved Help and Support
arcade bonnetomxplayerno sound
5 Posts 2 Posters 847 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.
  • B
    BiZzAr721
    last edited by 10 Apr 2020, 18:54

    Hello all. I hope everyone has been staying healthy, and getting buy without too much difficulty. I have been using my "quarantine" time to finish a miniature arcade build I have been working on.

    I am having issues with video snaps. When I enable OMXplayer, I have video and no sound. Sound is working with OMXplayer off. I have tried changing many settings from /etc/.asound.conf, to /usr/share/alsa/alsa.conf

    I had no sound during spash screen but was able to correct that by changing

    omxplayer -o both
    

    to

    omxplayer -o alsa
    

    in /opt/retropie/supplementary/splashscreen/asplashscreen.sh as referenced in this post.

    I can play video previews from command line with

    omxplayer -o local /path/to/file/filename.mp4
    

    When

    <string name="OMXAudioDev" value="alsa:hw:0,0" />
    

    I do not get a video at all.
    When set to local, I get video, but no sound.

    Note: I have used these same video's with OMXplayer on a pi without a hat attached.
    aplay -L shows

    CARD=sndrpihifiberry,DEV=0
    

    I am using a Raspberry Pi 3b+, with a Canakit powersupply, ADAfruit Arcade Bonnet, running the latest Retropie image (v 4.5.1) from a clean install.

    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator
      last edited by 10 Apr 2020, 19:05

      Have you used this guide to set up the speaker ? Can you show the output of aplay -Ll in full ?

      B 1 Reply Last reply 10 Apr 2020, 19:18 Reply Quote 0
      • B
        BiZzAr721 @mitu
        last edited by 10 Apr 2020, 19:18

        @mitu Yes, I did use that guide. I also saw it noted in that guide:
        omxplayer does not seem use the I2S interface for audio - only HDMI - so you won't be able to use it

        I did not pursue sound through OMX player after that until I came across your post about testing a file using

        omxplayer -o alsa
        

        and then proceeded to get splash screen sound back (Thank you BTW)

        aplay -Li

        null
            Discard all samples (playback) or generate zero samples (capture)
        speakerbonnet
        dmixer
        softvol
        default
        sysdefault:CARD=sndrpihifiberry
            snd_rpi_hifiberry_dac,
            Default Audio Device
        dmix:CARD=sndrpihifiberry,DEV=0
            snd_rpi_hifiberry_dac,
            Direct sample mixing device
        dsnoop:CARD=sndrpihifiberry,DEV=0
            snd_rpi_hifiberry_dac,
            Direct sample snooping device
        hw:CARD=sndrpihifiberry,DEV=0
            snd_rpi_hifiberry_dac,
            Direct hardware device without any conversions
        plughw:CARD=sndrpihifiberry,DEV=0
            snd_rpi_hifiberry_dac,
            Hardware device with all software conversions
        **** List of PLAYBACK Hardware Devices ****
        card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 []
          Subdevices: 0/1
          Subdevice #0: subdevice #0
        
        
        1 Reply Last reply Reply Quote 0
        • M
          mitu Global Moderator
          last edited by 11 Apr 2020, 08:56

          @BiZzAr721 said in No sound using OMXplayer / Arcade Bonnet:

          <string name="OMXAudioDev" value="alsa:hw:0,0" />

          If omxplayer -o alsa works, try changing the above to

          <string name="OMXAudioDev" value="alsa" />
          

          and see if it makes a difference.

          B 1 Reply Last reply 11 Apr 2020, 23:40 Reply Quote 0
          • B
            BiZzAr721 @mitu
            last edited by BiZzAr721 4 Dec 2020, 05:36 11 Apr 2020, 23:40

            @mitu Wow, well that definitely is a step in the right direction! Sound works, but is extremely low. I had to have the volume nearly all the way up, but then the emulator sound is nearly blowing the speaker.

            I only have sound with audio card set as sysdefault, HW, and default. All others will have the volume set to 0 when I go back into sound menu.
            Edit : As well as anything other than pcm for Audio Device

            I entered alsamixer, but didn't find anything useful there. Is there a way to control OMXplayer volume independant of software volume (or vice versa)?

            Temp fix noted: I added audio_volume = -24.0 into retroarch.cfg which for the most part normalizes OMXplayer video snap volume with LibRetro emulators. Since it's a miniature cabinet, I removed non-lr emulators that didn't really need to be on there. The only one I couldn't part with was Daphne (and OpenBOR when I set that back up)!

            note2: I altered daphne volume by creating a <gamename>.command file and adding volume variables (along with some other enhancements)
            -nocrc -volume_nonvldp 8 -volume_vldp 8 -noissues -nolog -noserversend
            Volume is rated 0-64. Daphne command line variables can be found here.

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              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.

              This community forum collects and processes your personal information.
              consent.not_received