v17 OMXPlayer hardware acceleration and external USB Sound Card
Given the recent changes in the OMXPlayer code, supporting the playback on external USB sound cards, I'd be very happy (desperately TBH) to learn how to enable this under Kodi.

Is there any way to patch/update the source code of Kodi, edit some XML to manually provide OMXPlayer with the Sound Card target: hdmi/local/both/alsa[:device]

Thanks in advance for any hints!
Not supported in kodi. command line omxplayer is very different from the omxplayer acceleration built into kodi.
It is recommened you disabled omxplayer and enabled mmal for hardware acceleration that supports USB audio.
Many thanks for your prompt answer and the clarifications.

Using MMAL is clearly not an option, first because of the performance (unusable on Pi Zero and barely usable on Pi2B) and secondly because it doesn't really work (even on Pi2B) with my two external Creative X-Fi Go! (and Go! Pro) USB sound cards:

It looks like I have to try some other tricks:
- build omxplayer and use it as an external player for Kodi - figure a way to launch it by default with -o alsa:hw:1,0
- a more desperate solution, use pulseaudio on the Kodi system to stream the PCM to another Pi Zero where I connect the USB sound card and use pulseaudio to only play the received stream. I'll need to properly sync the time between these Pi boards and hope I won't experience any delays.

Maybe Kodi 18 will have this omxplayer sound card choice option, together with a fix for the audio engine modifications that were added in Kodi 17.5:

Logout Mark Read Team Forum Stats Members Help
OMXPlayer hardware acceleration and external USB Sound Card0
This forum uses Lukasz Tkacz MyBB addons.