I've been thinking about this for a week now and think I have an idea.
What If I split the audio output, into two identical lines. One line goes directly to the (powered) speakers and sub woofer, the other to a infrared Led. I would then edit the beginning of each .ogg file to have a very short 38kHz square wave. Each .ogg file would have a unique pattern for an arduino with one of these
to detect and decode. Based on which pattern it decodes, it would do the desired effect.
What are your thoughts?