Microsoft DirectX 8.0 (C++)

IDirectMusicSegment8::SetRepeats

Sets the number of times the looping portion of the segment is to repeat. By default, the entire segment is looped.

HRESULT SetRepeats(
  DWORD dwRepeats
);

Parameters

dwRepeats
Number of times that the looping portion of the segment is to repeat, or DMUS_SEG_REPEAT_INFINITE to repeat until explicitly stopped. A value of 0 specifies a single play with no repeats.

Return Values

The method returns S_OK.

Requirements

  Header: Declared in dmusici.h.

See Also

IDirectMusicSegment8::GetRepeats, IDirectMusicSegment8::SetLoopPoints, Segment Timing