Closed magdesign closed 6 years ago
Oh wow, I totally missed that they implemented that! Big +1 for adding alsa support for ofxOMXPlayer. By far the biggest issue I usually have.
I think this will never come :-(
@magdesign yes - I've been on other non-RPi projects so it's unlikely to come from me.
Hey all,
with the rehaul the OMXAlsa stuff is there but may need some tweaks to be enabled? I'm not sure what the application use is as I typically just use the HDMI port.
the way you can enable it is to use
omxPlayer.engine.m_config_audio.device = "omx:alsa";
before calling omxPlayer.setup();
on my config is it currently causing errors and stopping video from playing but the component is passing. I don't know if I need other config tweaks in order to work as expected
Odd but would definitely be great to have! Main use is having an i2s audio hat or a usb audio interface.
ok - i do have a usb sound card so I can try that. It's probably just a matter of passing the correct hardware id
it does work - use the syntax
omxPlayer.engine.m_config_audio.device = "omx:alsa";
omxPlayer.engine.m_config_audio.subdevice = "hw:1,0";
//works but sounded weird with my config
//omxPlayer.engine.m_config_audio.subdevice = "default";
thats really great!
Since original omxplayer supports ALSA sound, for example: omxplayer -o alsa:hw:1,0 /location/of/video.mp4
It would be amazing to get also ALSA support on ofxOMXPlayer.