will allow you to play a sound synchronously or asynchronously from a file
or a resource.
> I am developing a scanner application which need to play a
> predefined audio file on a good scan.It's something
> similar like setting a audio file to be played,whenever a
> window opens.I am using wince.net.I need to know if there
> is an api/system call available which can be used to play
> *.wav files.
I undestand how to use the waveform API, waveOutOpen(), etc. to
play a wave file using only one buffer. That is, read all data in the
single buffer and then call waveOutWrite() to playback. But waht I
want to do is use two or more buffers, so that I need not playback
until all data are read. How to do this? Are there any sample source
code to demostate this?