Multiple application can use the waveOutOpen API only if driver permits
that. In that case driver will do the mixing.
Otherwise you will not be able to open device more than once.
You can try with different driver for the same hardware (if available) or
try with different sound card.
I think the above restrictions are for older
Windows versions. Most systems have only a single
sound card, shared by all the apps. As I
understand it, under Vista and Win7 each app acts
independently, as though it had the card to
itself, via emulation by Windows. Windows mixes
all the waveOut streams (including sample rate
conversion, etc) via the Kernel Mixer and feeds
them to the single sound card output stream. The
driver need not be aware of any of that, since it
sees only the single combined stream.
Best regards,
Bob Masta
DAQARTA v5.00
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Sound Level Meter
Frequency Counter, FREE Signal Generator
Pitch Track, Pitch-to-MIDI
DaqMusic - FREE MUSIC, Forever!
(Some assembly required)
Science (and fun!) with your sound card!
I have had a professional sound card on Windows XP on which I was not able to
open waveOut more than once. Even the error code for the second open attempt
said something like that. At the same time (on the same system) I was able to
open waveOut more than once on the sound card integrated on the motherboard. I
might be wrong, but it seems like a driver "issue".
P.S.
Happy new year!!! :-)