BASS_CDPlay

Plays an audio CD track.

BOOL WINAPI BASS_CDPlay(
    DWORD track,
    BOOL loop,
    BOOL wait
);

Parameters
trackThe track number to play... 1 = the first track.
loopLoop the track?
waitWait for the track to start playing before returning?

Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_CDINIT BASS_CDInit has not been successfully called.
BASS_ERROR_CDTRACKThe track number is invalid.
BASS_ERROR_NOCDThere's no CD in the drive.
BASS_ERROR_NOTAUDIOThe track is not an audio track.

Remarks
There is always a slight delay in starting playback of CD tracks as the drive seeks to the start of the track. Some CD drives will always wait for playback to start before returning from this function, whether the wait option is used or not.

Use CDCHANNEL with BASS_ChannelStop to stop the CD.

See also
BASS_CDInDrive, BASS_ChannelIsActive, BASS_ChannelSetAttributes, BASS_ChannelPause, BASS_ChannelStop