Platform SDK: DirectX |
The IDirectMusicSegmentState::GetStartTime method gets the performance time at which the segment started or will start playing.
HRESULT GetStartTime( MUSIC_TIME* pmtStart );
If the method succeeds, the return value is S_OK.
If it fails, the method can return E_POINTER.
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.
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.
IDirectMusicSegment::SetStartPoint, IDirectMusicSegment::GetStartPoint, IDirectMusicSegmentState::GetStartPoint