The NEW Build Your Own Arcade Controls

Main => Raspberry Pi & Dev Board => Topic started by: standard on June 25, 2017, 05:30:29 pm

Title: Audio problems MAME and SNES
Post by: standard on June 25, 2017, 05:30:29 pm
Raspberry Pi 2 Model B 1Gb
Retropie v4.2
PC monitor DVI>HDMI (No speaker on monitor)
USB speaker/soundbar

No sound coming through USB speaker/soundbar on MAME or SNES games.

I have since created a file named "alsa-base.conf" with the following text Saved in the following directory:
etc/modprobe.d/

# This sets the index value of the cards but doesn't reorder.
options snd_usb_audio index=0   
options snd_bcm2835 index=1

# Does the reordering.
options snd slots=snd_usb_audio,snd_bcm2835


Which resulted in the sound playing on the SNES games only, the MAME games do not load they just return to menu


How do I get the MAME game sounds to work too please?
Title: Re: Audio problems MAME and SNES
Post by: ark_ader on June 26, 2017, 12:07:26 pm
Weird.  Reinstall OS?
Title: Re: Audio problems MAME and SNES
Post by: standard on June 26, 2017, 02:58:17 pm
I have reinstalled the OS and still have the same problem. Sound working on SNES but the MAME games now don't load.
If I switch back to bcm2835 all games run but no sound.

Could it be that my Raspberry Pi 2 Model B is too old and need to update it to fix the sound problem or is there a fix for Raspberry Pi 2 Model B?

Please note: Using a TV connected via HDMI I don't have any sound issues.
It's only when I use a monitor and a USB sound bar.
Title: Re: Audio problems MAME and SNES
Post by: ark_ader on June 28, 2017, 03:13:12 pm
Does this behave same with a vanilla x86 PC?
Title: Re: Audio problems MAME and SNES
Post by: DaOld Man on June 28, 2017, 05:48:08 pm
Have you checked the settings in asoundrc?

sudo nano ~/.asoundrc
Title: Re: Audio problems MAME and SNES
Post by: standard on June 29, 2017, 01:12:59 pm
Have you checked the settings in asoundrc?

sudo nano ~/.asoundrc

Hello thank for this DaOld Man,
I typed this in and nothing shows up. No file settings or anything listed on screen.
I've attached an image to show you what I see.

If you can't read the title bar in the image it reads:
GNU nano 2.2.6                          File: /home/pi/.asoundrc

(http://ScreenGrab.gif)

best regards
Title: Re: Audio problems MAME and SNES
Post by: DaOld Man on June 29, 2017, 05:56:51 pm
Hmmm..
the blank screen means that the file dont exist.
You can try typing the commands in on that screen then saving it as ~/.asoundrc.
Not sure if that would work, if it dont you can delete the file later.
Heres what I have in mine.
Your device number might be different, mine is 0. yours may be 1
Title: Re: Audio problems MAME and SNES
Post by: standard on June 30, 2017, 11:13:40 am
Hmmm..
the blank screen means that the file dont exist.
You can try typing the commands in on that screen then saving it as ~/.asoundrc.
Not sure if that would work, if it dont you can delete the file later.
Heres what I have in mine.
Your device number might be different, mine is 0. yours may be 1

Ok added the file
.asoundrc to the directory
and see what you see on your image but have changed the card number to 1.

Still no joy the MAME games they don't run and just return back to the list of games.
My SNES games work well with sound.


For anybody else who wants to help figure out the solution to the problem this is my current hardware set up:

Raspberry Pi 2 Model B (Using a power adapter)
RetroPie v4.2
NEC Multisync LCD 1770 NX (Monitor)
USB Powered mini speaker
and Zero Delay USB Arcade controls
Title: Re: Audio problems MAME and SNES
Post by: ark_ader on July 01, 2017, 04:40:42 pm
You are using at least 2A powered hub with those external USB devices right? 

The Pi's power adapter is 2A too?