Share via


Looping Playback (Windows CE 5.0)

Send Feedback

You can loop the playback of a single audio buffer. To control how the playback loops, use the WAVEHDR structure passed to waveOutWrite.

To loop playback

  1. Set the WHDR_BEGINLOOP and the WHDR_ENDLOOP flags in the dwFlags member of the WAVEHDR structure.

  2. Set the number of loops in the dwLoops member of the same WAVEHDR structure.

  3. Pass the WAVEHDR structure to waveOutWrite.

    This action causes your device to begin looping.

  4. Use the waveOutBreakLoop function to break out of the loop prematurely.

See Also

Playing Waveform Audio Files

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.