Platform SDK: DirectX

IDirectMusicSegment::GetLength

The IDirectMusicSegment::GetLength method retrieves the length of the segment.

HRESULT GetLength(
  MUSIC_TIME* pmtLength
);

Parameters

pmtLength
Address of a variable to receive the segment's length in music time.

Return Values

If the method succeeds, the return value is S_OK.

If it fails, the method can return E_POINTER.

Remarks

If for some reason the segment's length was never set, *pmtLength is set to 0.

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::SetLength