Your code example looks correct except I get a return error 1 which is:
MMSYSERR_ERROR Unspecified Error
I know that hWaveOut is correct because it is the same value I get when I open the device using...
lngReturn = waveOutOpen(hWaveOut, lngDevOutIndex, VarPtr(WaveFormat), 0, 0, 0)
...so I know that's not the problem
In the above lngReturn = 0 and hWaveOut = 2010632 and that's the same value in hWaveOut argument of waveOutGetPosition
Also, I know the Time format is supported because after the function is called .wType = 1 which is TIME_MS and Micro Soft says that if the format is not supported you will get a substitute format




Reply With Quote