Retrieves the drive and track number of a CD stream.
Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- handle
- Type: SystemInt32
The CD stream handle.
Return Value
Type: Int32If an error occurs, -1 is returned, use BASS_ErrorGetCode to get the error code. If successful, the track number is returned in the low word (low 16-bits), and the drive is returned in the high word (high 16-bits).
Remarks
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
Examples
int track = BassCd.BASS_CD_StreamGetTrack(channel); if (track != -1) { int drive = Utils.HighWord32(track); track = Utils.LowWord32(track); }
See Also