BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_Release Method

BASS.NET API for the Un4seen BASS Audio Library
Releases a drive to allow other applications to access it.

Namespace:  Un4seen.Bass.AddOn.Cd
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

[DllImportAttribute("basscd")]
public static bool BASS_CD_Release(
	int drive
)

Parameters

drive
Type: SystemInt32
The drive to release... 0 = the first drive.

Return Value

Type: Boolean
If successful, then is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
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.

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_NOTAVAILThe ASPI interface is being used.

See Also

Reference