Sets the interface to use to access CD drives
Assembly: Bass.Net (in Bass.Net.dll) Version: 184.108.40.206
[DllImportAttribute("basscd")] public static int BASS_CD_SetInterface( BASSCDInterface iface )
<DllImportAttribute("basscd">] Public Shared Function BASS_CD_SetInterface ( iface As BASSCDInterface ) As Integer
- Type: Un4seen.Bass.AddOn.CdBASSCDInterface
The interface to use, which can be one of the following (see BASSCDInterface):
BASS_CD_IF_AUTO Automatically detect an available interface. The interfaces are checked in the order that they are listed here. For example, if both SPTI and ASPI are available, SPTI will be used. BASS_CD_IF_SPTI SCSI Pass-Through Interface. This is only available on NT-based Windows, not Windows 9x, and generally only to administrator user accounts, not limited/restricted user accounts. BASS_CD_IF_ASPI Advanced SCSI Programming Interface. This is the only interface available on Windows 9x, and can also be installed on NT-based Windows. BASS_CD_IF_WIO Windows I/O. Like SPTI, this is only available on NT-based Windows, but it is also available to limited/restricted user accounts. Some features are not available via this interface, notably sub-channel data reading and read speed control (except on Vista or newer). Door status detection is also affected.
Return ValueType: Int32
If successful, the interface being used is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Use of this function is optional. If it is not used, BASSCD will automatically detect an available interface.
|BASS_ERROR_ILLPARAM||iface is invalid.|
|BASS_ERROR_NOTAVAIL||The interface is not available, or has no drives available.|