USB audio incompatible with mame4all?
-
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...
-
How did you configure the USB soundcard ? Did you also disable the PI's native audio ?
-
@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).
-
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
). -
@mitu so I get this
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. -
Either the rom is faulty (but since it works with
lr-mame2000
that may not be the case) ormame4all
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 getmame4all
to work. -
@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.
-
@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
} -
@t3stin Try listing the cards with
aplay -l
, yours may have a different name. -
@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
-
-
-
Sounds like the name is 'USB PnP Sound Device'.
-
@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? 😐
-
check with alsamixer to see what the volume it set too
-
@grant2258 I had checked there, it was set to 100
-
can you post the output of
amixer -M
and
amixer -
@grant2258 see attached
-
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
-
@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.
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.