Platform SDK: DirectX

IDirectMusicSegmentState::GetStartTime

The IDirectMusicSegmentState::GetStartTime method gets the performance time at which the segment started or will start playing.

HRESULT GetStartTime(
  MUSIC_TIME* pmtStart
);

Parameters

pmtStart
Address of a variable to receive the music-time offset stored in this segment state.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return E_POINTER.

Remarks

If the segment was started from some point other than the beginning, you can retrieve the time at which the beginning of the segment would have fallen by subtracting the time returned by IDirectMusicSegmentState::GetStartPoint from the value returned by this method.

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::SetStartPoint, IDirectMusicSegment::GetStartPoint, IDirectMusicSegmentState::GetStartPoint