BASS_CD_Release


Releases a drive to allow other applications to access it.

BOOL BASS_CD_Release(
    DWORD drive
);

Parameters

driveThe drive to release... 0 = the first drive.

Return value

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

Error codes

BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_NOTAVAILThe ASPI interface is being used.

Remarks

When using the SPTI interface, some applications may require BASSCD to release a CD drive before the app is able to use it. After a drive has been released, BASSCD will attempt to re-acquire it in the next BASSCD function call made on it.

See also

BASS_CD_SetInterface