BASS_CDInit

Initializes the BASS CD audio system.

BOOL WINAPI BASS_CDInit(
    char *drive
);

Parameters
driveThe CD drive... NULL = use default drive.

Return value
If BASS was successfully initialized then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes
BASS_ERROR_ALREADYThe BASS CD system has already been initialized. You must call BASS_CDFree before calling BASS_CDInit again.
BASS_ERROR_INITCDThe CD could not be initialized. Either there is no CD drive, or it is in use by another application.

Remarks
This function must be successfully called before calling any other BASS CD functions.

Example
To initialize the CD audio system, using drive E.

BASS_CDInit("E:");

See also
BASS_CDFree, BASS_CDPlay, BASS_Init