IDirectMusicSegmentState::GetSeek

The IDirectMusicSegmentState::GetSeek method retrieves the current seek pointer in the segment state. This is the value that will be passed in the mtStart parameter of IDirectMusicTrack::Play the next time that method is called. It does not take into account looping and repeating, so that if the entire segment state repeats to the beginning, the seek pointer is reset to 0.

HRESULT GetSeek(
  MUSIC_TIME* pmtSeek
);
 

Parameters

pmtSeek
Address of variable to receive the current seek pointer.

Return Values

If the method succeeds, the return value is S_OK.

If the method fails, the return value may be E_POINTER.

QuickInfo

  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.