The Pi analog jack sound is crunchy, hissy, terrible. My supply has the ferrite bead. So I ordered a cheap USB sound adapter on amazon (
http://smile.amazon.com/gp/product/B001MSS6CS?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00)
...and it sounds much better right out of the gate, HOWEVER, it only works on the Attract Mode frontend menu. The games themselves (mame4all) are now silent. I've mixed and matched various techniques, the only other result I can get is where the front end has sound, but the games will not launch. I see the desktop for a split second, then I'm back in the frontend. Strange.
I am able to detect it via LSUSB
I'm unable to select it for sound output in the LXDE task bar
I am able to find it and affect levels using alsamixer
In /etc/modprobe.d/alsa-base.conf, I've commented this line
options snd-usb-audio index=-2
...but no dice (frontend sound only)
I've left it uncommented
...but no dice (frontend sound only)
I've also changed the "-2" to "0"
...but no dice (no sound at all)
I've tried to blacklist the onboard sound card in /etc/modprobe.d/also-base-blacklist.conf with:
blacklist snd_bcm2835
(and "blacklist snd-bcm2835", with the hyphen, to be safe)
If I use this technique:
-with unchanged "options snd-usb-audio index=-2" , I get frontend sound only
-with change "options snd-usb-audio index=0" , I get frontend sound only
-with commented "options snd-usb-audio index=-2" , I get no sound at all
Finally I discovered /root/.asoundrc
wherein I can apparently change the default sound device. It's normally card 1. My "C-Media UCB Audio Device" is card 0. There are two occurrences like so:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
} Even as I type this, I might just be getting lost, but it seems like the card # changes on reboot depending on the techniques above. When I restarted with an unchanged alsa-base.conf (options snd-usb-audio index=-2) and an unblacklisted also-base-blacklist.conf ... my .asoundrc now shows the card as 0. Does that sound right?
I'm starting to wonder if there are sound settings for mame4all that I haven't been able to find. That would work for me as I have no other sound sources.
Has anyone stumbled into the magic combo?