Retrieves the length (in bytes) of a track.
Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("basscd")] public static int BASS_CD_GetTrackLength( int drive, int track )
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: Int32If an error occurs, -1 is returned, use BASS_ErrorGetCode to get the error code. If successful, the length of the track is returned.
Remarks
See also: BASS_CD_GetTrackLengthSeconds(Int32, Int32) and BASS_CD_GetTrackPregap(Int32, Int32).
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