-
Notifications
You must be signed in to change notification settings - Fork 332
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
Simulataneous Audio Over ALSA and Local #498
Comments
Well, pretty much all of the code works. It would just require specifying the command line parameters and implementing the small bit of glue code. The format it was originally was not good enough, so I'm open for suggestions. The current options are: local, hdmi, both and alsa. We'd need something to make both use alsa, or add new target name such as 'alsa+hdmi' to specify output on both. Suggestions? |
|
My personal thanks to both of you! Your coding skills and knowledge of how all this truly is beyond impressive to someone who is much better categorized as a "novice". -o local |
Related to popcornmix#498
Fabled--- |
@scotthardwick alsa+local is slightly more complex. It would require setting up additional OMX switching logic. Also I wonder should alsa or local output be the clock master. |
@fabled -- I would think alsa would be the clock master in that situation. But that is just my gut thought. Thank you for continuing to investigate this for me! |
I have been hesitating to comment on this as I was already late at the party... Isn't it better to have a comma separated list of devices you want to use? E.g. The notation |
@jehutting Sounds good to me. |
I'm happy with @jehutting's syntax.
would become
(a helper function for checking if m_config.device enables "hdmi" etc is also valid) |
I'm using (in my own, not-gihub'ed, not public'ed) omxplayer the following code:
Changed to using string.find() -just for fun-:
The AudioDevice class defined in OMXAudio.h:
A snapshot of its usage (in OMXAudio.cpp)
I'm describing the OpenMAX layer of omxplayer in Work in progress... |
I also started working on this a little bit. But I want to pass the full audio device string to OMXAudio so it can create the audio graph from it. This allows e.g. output to two alsa devices, and automatically uses the first audio device as clock master so user can decide that too. I pushed WIP code (does not compile) to fabled@feca5ce |
Ok, updated code now at fabled@cd09c41. It should mostly work, though error checking is not done fully yet. Use -o Maybe someone could take a look at the code changes if it looks as an idea ok? I still need to add proper error checking for omx calls and that the maximum amount of audio output devices is not exceeded. |
@fabled how is it going? It sounds like a lot has been done and only little remains. It would cool to get this implemented |
@fabled any news on this one? |
I'm waiting feedback from @popcornmix for the above mentioned commit. |
Related to popcornmix#498
I have been researching on Google and I seem to keep coming up that at least in the past it was not possible to get simultaneous audio to HDMI and I2C.
Is there a way to get simultaneous output to Local jack and ALSA (in my case I am using a Hifiberry Amp+)
Thanks for any input!
Best!
Scott
The text was updated successfully, but these errors were encountered: