Platform SDK: DirectX

IDirectMusicSegment::SetRepeats

The IDirectMusicSegment::SetRepeats method 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. A value of 0 indicates a single play with no repeats.

Return Values

The method returns S_OK.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dmusici.h.

See Also

IDirectMusicSegment::GetRepeats, IDirectMusicSegment::SetLoopPoints, Segment Timing