Plays an audio CD track.
BOOL WINAPI BASS_CDPlay( |
Parameters
track | The track number to play... 1 = the first track. |
loop | Loop the track? |
wait | Wait 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_CDTRACK | The track number is invalid. |
BASS_ERROR_NOCD | There's no CD in the drive. |
BASS_ERROR_NOTAUDIO | The 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