Microsoft DirectX 8.0 (Visual Basic)

DirectMusicSegment8.GetLength

Retrieves the length of the segment.

object.GetLength() As Long

Parts

object
Resolves to a DirectMusicSegment8 object.

Return Values

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

The method always returns 1 for segments created from wave files.

See Also

DirectMusicSegment8.SetLength