-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sound Settings / Audio Card Not Selecting ALSA default or sysdefault Hardware Device #800
Comments
Hi @nathan-hook , Thanks for taking the time here. I'll be honest, I don't think anyone here will have a similar device and will be able to assist. The best recommendation for issues is normally to send them to the forums, as the odds of finding someone with a similar setup and experience are higher. To be fair, this specific use case you're describing might be a bit more niche than usual, with wanting to re-route different audio devices depending on the setting by changing a system file. In principle, it seems you're going about it the right way, but I don't have such a device I can't replicate it or explore further, and I believe other contributors here will be in the same situation. I suggest you go here and share your feedback. Hopefully someone will have run into a similar situation and might be able to shed some light. Best of luck. |
@pjft there is already a topic opened https://retropie.org.uk/forum/topic/33069/ and I took a look at it. |
Got it. |
Is there anything I can do to help? If I am pointed in the right(ish) direction, I might be able to donate a bit of time to get this problem solved. |
@nathan-hook not sure how familiar you are with SDL, the changes needed are to be implemented in the AudioManager class, where the output device is (not) chosen during initialization. The issue is that the device/card selection is used by Underneath, The issue is also a disconnect between the names used in the Ideally, both
|
To reproduce this with just the Pi audio devices (analog/HDMI), the following
Using @nathan-hook a workaround you can employ for the moment is to have 2 |
Good day,
Here is my system information:
Pi 4 (8 gig ram)
CanaKit 3.5A USB-C Power Supply with Noise Filter
Retropie Version 4.8.2 - Last Commit: 3 weeks ago (f271ce9d)
Image downloaded from retropie website
HiFiBerry DAC2 HD installed
This problem might be a simple understanding of my misinterpreting how audio-cards work in EmulationStation...
I have been just having a terrible time getting my HiFiBerry DAC to work properly.
I have read numerous examples of how to properly setup ALSA.
For now, I have settled on the following setup in my /etc/asound.conf file:
My goal is to be able to select using my hifi berry or hdmi via the sound settings in retropie.
However, I am unable to get switching back and forth between the two devices/audio cards to work...
Here is what I am expecting to work.
When I go to Sound Settings -> Audio Card when I select default, the sound should come through the hifi berry (see the asound.conf above). This actually works and is expected behavior.
However, I don't always want the sound to go through my receiver and speakers.
So, I have hdmi setup as sysdefault in ALSA and when I go to Sound Settings -> Audio Card and select sysdefault, I would expect the sound to start coming though the hdmi (see the asound.conf above).
However, the sound still comes though the receiver/speakers (the default device) and not the hdmi (sysdefault).
What am I doing wrong and how can I achieve my goal of being able to select which device plays sound?
Does Sound Settings -> Audio Device have to be set to a different specific value for this plan/idea to work?
Any friendly advice would be greatly appreciated.
BTW, I am able to play sounds through both the hdmi and hifiberry using omxplayer.
Here are the two different commands:
The text was updated successfully, but these errors were encountered: