• 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

USB audio incompatible with mame4all?

Scheduled Pinned Locked Moved Help and Support
mame-mame4alllrmamexin moretropie
21 Posts 3 Posters 2.6k 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.
  • T
    t3stin
    last edited by 9 May 2020, 08:38

    I have a Raspberry Pi B with the latest retropie image. I've spent hours trying to get audio out of the 3.5 jack with no luck. I've read hundreds of forum posts, search engine results etc and tried everything I've found with no luck. I have since purchased a usb soundcard got it all setup but now when selecting a rom it goes to the normal black screen to load it then dumps me back in mame to my list of ROMs - I switched the emulator from mame4all to lrmame2000 which has resolved the ROM issue and they now load again but despite setting up the controls fine in retroarch when I go into a game the joysticks don't work (despite working in the retroarch setup and everywhere else). I plugged in a keyboard and hit tab input general to change the button config but it won't accept my joystick input (mame4all picks up the joysticks fine in here). IV tried copying my retroarch.cfg and default.cfg to the relevant folders for lrmame and still it won't recognise joystick inputs, feel like I'm destined to have no audio...anyone help? Also if I remove the USB audio and settings mame4all once again runs the roms fine...

    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator
      last edited by 9 May 2020, 08:54

      How did you configure the USB soundcard ? Did you also disable the PI's native audio ?

      T 1 Reply Last reply 9 May 2020, 09:33 Reply Quote 0
      • T
        t3stin @mitu
        last edited by 9 May 2020, 09:33

        @mitu when I disabled the onboard card I was getting various errors so I re-enabled it and switched the default order so the usb one is first (0) and onboard (1).

        1 Reply Last reply Reply Quote 0
        • M
          mitu Global Moderator
          last edited by 9 May 2020, 13:38

          From what I see, mame4all is picking up only the 1st (default) audio card. Post an emulator log, maybe that would show the error (/dev/shm/runcommand.log).

          T 1 Reply Last reply 9 May 2020, 18:37 Reply Quote 0
          • T
            t3stin @mitu
            last edited by 9 May 2020, 18:37

            @mitu so I get this IMG_20200509_183100.jpg
            Have tried changing the sample rate to 48000hz in mame.cfg (I assume in the right directories) but still says the same - requested 44100hz etc.

            1 Reply Last reply Reply Quote 0
            • M
              mitu Global Moderator
              last edited by 9 May 2020, 20:08

              Either the rom is faulty (but since it works with lr-mame2000 that may not be the case) or mame4all doesn't like the the ALSA setup.
              There's an extensive post here about a similar setup. Try adapting the .asoundrc file to your setup and see if you get mame4all to work.

              T 2 Replies Last reply 9 May 2020, 20:12 Reply Quote 0
              • T
                t3stin @mitu
                last edited by t3stin 5 Sept 2020, 21:12 9 May 2020, 20:12

                @mitu will take a look at the post but literally all the roms worked in mame4all until adding the USB audio, if I remove it all the roms work again.

                1 Reply Last reply Reply Quote 0
                • T
                  t3stin @mitu
                  last edited by 9 May 2020, 20:47

                  @mitu ok besides the rom I tested with earlier most others seem to work again with those changes but I'm still unbelievably getting no audio 😭 would it be worth checking the runcommand log again or will it be blank as the rims work? Finally should card "U012529205" mentioned below be unique or would this be generic? Not sure how I find out what I replace that with and I appreciate all the help your giving!```
                  }
                  pcm.usb {
                  type hw
                  card "U012529205"
                  format S16_LE
                  }

                  M 1 Reply Last reply 9 May 2020, 20:49 Reply Quote 0
                  • M
                    mitu Global Moderator @t3stin
                    last edited by 9 May 2020, 20:49

                    @t3stin Try listing the cards with aplay -l, yours may have a different name.

                    T 1 Reply Last reply 9 May 2020, 21:12 Reply Quote 0
                    • T
                      t3stin @mitu
                      last edited by 9 May 2020, 21:12

                      @mitu so I get the right answer here's a few screenshots if you're able to decipher? In ES I have card as sysdefault, device as speaker and 0MX as ALSA:HW:0,0

                      IMG_20200509_220635.jpg

                      T 1 Reply Last reply 9 May 2020, 21:14 Reply Quote 0
                      • T
                        t3stin @t3stin
                        last edited by 9 May 2020, 21:14

                        @t3stin IMG_20200509_220719.jpg

                        T 1 Reply Last reply 9 May 2020, 21:16 Reply Quote 0
                        • T
                          t3stin @t3stin
                          last edited by 9 May 2020, 21:16

                          @t3stin IMG_20200509_220657.jpg

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

                            Sounds like the name is 'USB PnP Sound Device'.

                            T 1 Reply Last reply 10 May 2020, 08:53 Reply Quote 0
                            • T
                              t3stin @mitu
                              last edited by 10 May 2020, 08:53

                              @mitu ROMs load, no errors in run command, when I run a test wav file the light on the usb sound card flashes yet I still have nothing coming out of the speaker (which was new)...never realised it would be so difficult to get some sound out of this thing! Should I just give up and play in silence? 😐

                              G 1 Reply Last reply 10 May 2020, 14:50 Reply Quote 0
                              • G
                                grant2258 Banned @t3stin
                                last edited by 10 May 2020, 14:50

                                @t3stin

                                check with alsamixer to see what the volume it set too

                                T 1 Reply Last reply 10 May 2020, 15:38 Reply Quote 0
                                • T
                                  t3stin @grant2258
                                  last edited by 10 May 2020, 15:38

                                  @grant2258 I had checked there, it was set to 100

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    grant2258 Banned
                                    last edited by 10 May 2020, 17:48

                                    can you post the output of

                                    amixer -M
                                    and
                                    amixer

                                    T 1 Reply Last reply 11 May 2020, 09:28 Reply Quote 0
                                    • T
                                      t3stin @grant2258
                                      last edited by 11 May 2020, 09:28

                                      @grant2258 see attached Screenshot_20200511-102621.png

                                      Screenshot_20200511-102603.png

                                      1 Reply Last reply Reply Quote 0
                                      • G
                                        grant2258 Banned
                                        last edited by grant2258 5 Nov 2020, 13:28 11 May 2020, 12:03

                                        if you look at mono playback it appears to be off (mic) open alsamixer again use the leftt and right arrow keys to check if anything is muted or off also what is your sound.

                                        edit:

                                        Check if you have a ~/.asoundrc file in your user home directory; it will override settings in /etc/asound.conf

                                        more info here

                                        https://www.alsa-project.org/main/index.php/Asoundrc

                                        T 1 Reply Last reply 11 May 2020, 14:38 Reply Quote 0
                                        • T
                                          t3stin @grant2258
                                          last edited by 11 May 2020, 14:38

                                          @grant2258 all was fine there.....would you believe out of curiosity I found out some really old headphones and the sound was blaring from them - apparently brand new speaker DOESNT work!! Thanks for all your help guys.

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