BASS.NET API for the Un4seen BASS Audio Library

BassCdBASS_CD_Door Method

BASS.NET API for the Un4seen BASS Audio Library
Opens, closes, locks or unlocks a drive door.

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_Door(
	int drive,
	BASSCDDoor action
)

Parameters

drive
Type: SystemInt32
The drive... 0 = the first drive.
action
Type: Un4seen.Bass.AddOn.CdBASSCDDoor
The action to perform... one of the following (see BASSCDDoor):
BASS_CD_DOOR_CLOSEClose the door.
BASS_CD_DOOR_OPENOpen the door.
BASS_CD_DOOR_LOCKLock the door.
BASS_CD_DOOR_UNLOCKUnlock the door.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

ERROR CODEDescription
BASS_ERROR_DEVICEdrive is invalid.
BASS_ERROR_ILLPARAMaction is invalid.
BASS_ERROR_UNKNOWNSome other mystery problem! Could be that the door is locked.

Examples

Open the CD door of the first drive:
BassCd.BASS_CD_Door( 0, BASSCDDoor.BASS_CD_DOOR_OPEN );
See Also

Reference