Allocating Audio Data Blocks
After you have determined the capabilities of your Windows CE–based device, you can allocate memory for your audio data blocks. Use the WAVEHDR structure to allocate the memory that the waveInAddBuffer and waveOutWrite functions need to play sound. The following table shows the functions that prepare headers.
|waveInPrepareHeader||Prepares a waveform audio input data block|
|waveOutPrepareHeader||Prepares a waveform audio output data block|
Before passing an audio data block to a device driver with waveInAddBuffer or waveOutWrite, call the waveInPrepareHeader or the waveOutPrepareHeader function on the data block. Then, pass the data block to waveInAddBuffer or waveOutWrite.
Last updated on Tuesday, May 18, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.