DirectX SDK

CONST_DSBPLAYFLAGS

The CONST_DSBPLAYFLAGS enumeration is used in flags parameter of the DirectSoundBuffer.Play method to specify how to play the buffer.

Enum CONST_DSBPLAYFLAGS
    DSBPLAY_DEFAULT = 0
    DSBPLAY_LOOPING = 1
End Enum
DSBPLAY_DEFAULT
Plays from the cursor position to the end of audio buffer.
DSBPLAY_LOOPING
Once the end of the audio buffer is reached, play restarts at the beginning of the buffer. Play continues until explicitly stopped. This flag must be set when playing primary sound buffers.