Platform SDK: DirectX

DirectMusicSegment.GetLength

The DirectMusicSegment.GetLength method retrieves the length of the segment.

object.GetLength() As Long

Parameters

object
Object expression that resolves to a DirectMusicSegment object.

Return Values

If the method succeeds, it returns the length of the segment, in music time.

Error Codes

If the method fails, it raises an error, and Err.Number is set.

Remarks

If for some reason the segment's length was never set, the method returns 0.

See Also

DirectMusicSegment.SetLength