But I noticed something odd. I can run multiple instances of OMXPlayer when using the Raspberry Pi's built-in audio hardware but when I try to run more than one instance of OMXPlayer with the Audio Injector the first instance plays and the second instance hangs. It's like the Audio Injector only allows one process to access it at a time.
Unfortunately, I actually need to have two instances of the OMXPlayer running and using the sound system simultaneously. Like I said, the Raspberry Pi's built-in sound system (as bad as it is) allows this but the Audio Injector it appears does not.
As an example, If I open two terminal windows and launch the OMXPlayer from the command line like this:
Terminal #1:
Code: Select all
omxplayer --adev alsa --dbus_name "unique.player.name1" "Key Largo.mp3"
Code: Select all
omxplayer --adev alsa --dbus_name "unique.player.name2" "Bang Bang.mp3"
The --adev alsa command line option instructs the OMXPlayer to use the ALSA system for audio output rather than accessing the audio hardware directly.
The --dbus_name "unique.player.name1" command line option allows me to give that instance of the OMXPlayer a unique name so that I can control that specific named instance via DBUS commands.
I really need the ability to run two instances of the OMXPlayer. If Audio Injector imposes a single process access rule then this is a show-stopper for me.
Can you advise?
Thanks,
-Wes