Sets the interface to use to access CD drives
Namespace: Un4seen.Bass.AddOn.Cd
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("basscd")] public static int BASS_CD_SetInterface( BASSCDInterface iface )
Parameters
- iface
- 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 Value
Type: Int32If successful, the interface being used is returned, else -1 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Use of this function is optional. If it is not used, BASSCD will automatically detect an available interface.
ERROR CODE | Description |
---|---|
BASS_ERROR_ILLPARAM | iface is invalid. |
BASS_ERROR_NOTAVAIL | The interface is not available, or has no drives available. |
See Also