I'm using WinLIRC to receive IR commands and cause UICE to execute "qwave.exe soundfile.wav". By this method I'm able to cause various short wave files to play upon receipt of specific IR commands from a remote. The problem is that these sounds are played through the default Windows sound device, whereas I want them to play through a secondary soundcard or external USB sound device. I've read that Winamp can play through alternate sound cards but it is too intrusive (opens and steals focus) and large (slow) for this application. I found the following old forum post which I think hints how it can be done. Any advice or solutions will be greatly appreciated!
(from http://opensource.creative.com/pipermail/openal/2004-March/007351.html)
"If you download the code from CVS (instructions at
http://www.openal.org/downloads.html), you'll find the source code for
"altest" in openal/demos/altest/common/altest.cpp. During
initialization, you'll see a reference to enumeration -- that section
will show you how to use the context enumeration extension to enumerate
the various "devices" on your system.
These "devices" do not necessarily correspond with sound cards,
however. For instance, I have a computer at work with an NVIDIA
nForce2 and a Creative Audigy 2 in it. The devices enumerate and will
play back as follows:
Device Name / playback device
MMSYSTEM / whatever is the "preferred audio device" selected for Windows
DirectSound / "preferred audio device" as with MMSYSTEM
DirectSound3D / "preferred audio device" as with MMSYSTEM
NVIDIA nForce2 / always will play back on the nForce 2
Creative Audigy 2 / always will play back on the Audigy 2
On your system, if you have an nForce2 and a Creative card, then you'll
see explicit entries for those two cards on your device list. Any card
that doesn't have its own accelerated OpenAL implementation will have
to be selected by using one of the generic devices, which will follow
the "preferred audio device" selection in Windows."
(from http://opensource.creative.com/pipermail/openal/2004-March/007351.html)
"If you download the code from CVS (instructions at
http://www.openal.org/downloads.html), you'll find the source code for
"altest" in openal/demos/altest/common/altest.cpp. During
initialization, you'll see a reference to enumeration -- that section
will show you how to use the context enumeration extension to enumerate
the various "devices" on your system.
These "devices" do not necessarily correspond with sound cards,
however. For instance, I have a computer at work with an NVIDIA
nForce2 and a Creative Audigy 2 in it. The devices enumerate and will
play back as follows:
Device Name / playback device
MMSYSTEM / whatever is the "preferred audio device" selected for Windows
DirectSound / "preferred audio device" as with MMSYSTEM
DirectSound3D / "preferred audio device" as with MMSYSTEM
NVIDIA nForce2 / always will play back on the nForce 2
Creative Audigy 2 / always will play back on the Audigy 2
On your system, if you have an nForce2 and a Creative card, then you'll
see explicit entries for those two cards on your device list. Any card
that doesn't have its own accelerated OpenAL implementation will have
to be selected by using one of the generic devices, which will follow
the "preferred audio device" selection in Windows."







