The NEW Build Your Own Arcade Controls

Main => Software Forum => Linux => Topic started by: ZoOl007 on June 14, 2020, 05:19:31 am

Title: Mame audio through usb audio card
Post by: ZoOl007 on June 14, 2020, 05:19:31 am
Hi,

I have an OdroidXU4 sbc. It has an hdmi output. Sound goes through the hdmi by default. The monitor doesn't have speakers. I attached a usb audio device (chipset CM108).
I reconfigured the system using /etc/asound.conf to use the usb audio card.
So if I now run speaker-test -t wav -c 2 as any user alsa plays the sound correctly.
The distribution is ubuntu 20.04 LTS minimal - so no desktop environment.
I can not get Mame to use the usb audio card. It always plays through hdmi.
It doesn't matter if I use for example ./mame myRom -sound SDL or portaudio .... it always uses the hdmi.
I don't understand it. Can someone clarify please?

Thanks.
Title: Re: Mame audio through usb audio card
Post by: keilmillerjr on June 14, 2020, 06:37:42 am
Try changing your soundcard boot order? Link is for arch, but I assume it will still be related.

https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Set_the_default_sound_card