Retrieves the length (in seconds) of a track.
Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- drive
- Type: SystemInt32
The drive... 0 = the first drive. - track
- Type: SystemInt32
The track to retrieve the length of... 0 = the first track.
Return Value
Type: DoubleIf an error occurs, -1 is returned, use BASS_ErrorGetCode to get the error code. If successful, the length of the track in seconds is returned.
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_DEVICE | drive is invalid. |
BASS_ERROR_NOCD | There's no CD in the drive. |
BASS_ERROR_CDTRACK | The track number is invalid. |
BASS_ERROR_NOTAUDIO | The track is not an audio track. |
See Also