Sound card selectable from emulationstation
-
Hi,
I'm trying to know if it's possibble to get a setup as the one I describe:
I want to have the same Raspberry Pi working in two places:
- In my living room connected to a LCD TV via HDMI for both video and audio
- In a second room connected to a LCD Monitor via HDMI for video and to an external USB sound card for audio
I've been able to configure the external sound card from the command line however I'd like to have an option in emulationstation to switch from one sound card (the internal one) to another.
I've followed this guide: https://github.com/RetroPie/RetroPie-Setup/wiki/Sound-Issues
and there is a section explaining how to add a custom audio card to emulationstation.
The guide says:Select any one of the Audio Cards listed by using the first word on the line in your AudioCard settings in the es_settings.cfg, e.g. <string name="AudioCard" value="default" />
However if I run aplay -L both cards have an entry that starts with "default"
Another possible solution would be to add an udev rule to set the external usb sound card as the default one when it's connected and the internal sound card when it's not.
Any ideas?
Thanks!
-
What Emulationstation version do you have installed ? Please add more info about your system, as requested in https://retropie.org.uk/forum/topic/3/read-this-first.
The latest Emulationstation version (2.8.2) should have more options in the Audio settings, making it easier to switch between the external and internal sound cards. -
Sorry,
I'm running Retropie 4.4.9 on a Raspberry Pi 1 B.
Built from the pre-made sd image on retropie website but using a custom kernel with the driver module of my external sound card (included in the current Raspberry Pi kernel sources, but not in the default Raspbian kernel builds).
I don't know where to check the version of Emulationstation.EDIT: Emulationstation version: 2.8.2RP
-
@h2805270 said in Sound card selectable from emulationstation:
I don't know where to check the version of Emulationstation.
Press
Start
and look at the menu - the version is at the bottom.EDIT: you can add your command line toggle at the beginning of the of the
autostart.sh
script - see https://retropie.org.uk/docs/FAQ/#how-do-i-boot-to-the-desktop-or-kodi. You could do add something likeif <external_sourd_card_detected>; then <command_to_switch_to_ext> else <command_to_switch_to_hdmi> fi
-
@mitu said in Sound card selectable from emulationstation:
Press Start and look at the menu - the version is at the bottom.
Ups, it was really simple: v2.8.2RP
@mitu said in Sound card selectable from emulationstation:
you can add your command line toggle at the beginning of the of the autostart.sh script
Thanks, I'll try to do it with this script while I'm still investigating if it's possible to get this from the Emulationstation UI
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.