winmm.dll function calls hang

Dec 1, 2010 at 3:58 PM
Edited Dec 1, 2010 at 4:00 PM

Hi,

I have recently encountered an issue where sometimes the winmm.dll function calls just hangs, and never returns, causing the program to lock up.  This only seems to happen when using the api calls in multiple threads. My current application is advanced containing 10-15 threads plus a threadpool. Every once in awhile one of these winmm functions will not return after calling them. Sometimes  WaveOutOpen or WaveOutClose, or any of the WaveIn functions also. Has anyone ever seen this? I have seen this happen in other win api libraries not related to audio.

Thanks,

Coordinator
Dec 1, 2010 at 4:40 PM

Hi topher,

I have seen some rare issues where the OS will not properly release the buffers sent to it, and the app will freeze, while waiting for all of them to be returned.

If you have a repro case, I would love to take a look and see if there is a work-around we could implement.

Thanks.

Dec 2, 2011 at 10:19 AM

Did you get a solution to this problem, I have a simular problem that calls to winmm.dll hang if the USB sound device is unplugged while a wav file is being played.