Your ThreadProc code - I cannot verify this from the latest Vista SDK docs, nor from the appalling SDK example, but perhaps the event should be manual reset ? - with the handler calling ResetEvent() after processing the buffer?
Using auto reset or manual Events doesn't seem to have any impact on my results so far. Tried the Open source CMedia drivers (got a AOpen Cobra in the mean time), works OK in shared mode, but not in exclusive+event so far, Initialize returning E_INVALIDARG for a S_OK'ed wavex in IsFormatSupported. Also I still get locks on the second WaitForSingleObject, the first time i try to start some devices, its really odd. And some times when i get corrupted output , that really sounds like an out of sync thing. But maybe thats due to something else on my side. more later -- David Viens, Plogue Art et Technologie Inc. Montreal. http://www.plogue.com ****************** WDMAUDIODEV addresses: Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx Subscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe Unsubscribe: mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe Moderator: mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx URL to WDMAUDIODEV page: http://www.wdmaudiodev.com/