Playing only part of a .wav file with directSound
Posted on 2005-05-12
I need to be be able to take a .wav file and play only part of it eg from 200to 800 ms through the file. I have code that will do it using DirectShow, but I'd like to do it in directSound. Also, I can play the whole file using DirectSound, based on the examples in the SDK, but I don't know how to just play part of it. Is it possible? If the answer is "yes", and I get an explanation of how to make it work, I'll up the points to 250.
I'm using Visual C++ .NET 2003 IDE to write native C++ code, if it makes a difference.