Why does your application need 200 wave handles? If there is any per-stream
processing in an SFX APO (or LFX APO since this is Windows 7) then your
application is causing this APO to be instantiated 200 times.
From: caijing<mailto:caijing@xxxxxxxxxx>
Sent: Wednesday, June 15, 2016 8:46 PM
To: wdmaudiodev@xxxxxxxxxxxxx<mailto:wdmaudiodev@xxxxxxxxxxxxx>
Subject: [wdmaudiodev] Problem using waveOutOpen on win7
Hi,
I have problem using waveOutOpen on win7.
In my application, I need to call waveOutOpen 200 times to open devices -
waveOutOpen (handle, deviceId0/deviceId1, Pcm48Khz16BitStereo, 0,0,0)
I found that the memory of audiodg.exe process rise quickly, and waveOutOpen
randomly return MMSYSERR_ERROR(often after 80 times), finally waveOutOpen
return MMSYSERR_NOMEM.
Please notice the code works fine on XP(always return MMSYSERR_NOERROR).
Thank you for your help.
CaiJing