IDirectMusicSegment8::GetLength

DirectMusic

Microsoft DirectX 9.0 SDK Update (Summer 2004)

IDirectMusicSegment8::GetLength

The GetLength method retrieves the length of the segment.

Syntax

HRESULT GetLength(
  MUSIC_TIME* pmtLength
);

Parameters

pmtLength

Address of a variable that receives 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

The method always returns 1 in *pmtLength for segments created from WAV files.

Requirements

  Header: Declared in dmusici.h.

See Also


© 2004 Microsoft Corporation. All rights reserved.