Adds a driver to the device list.
Namespace: Un4seen.BassAsio
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- clsid
- Type: SystemGuid
The driver's class ID. - driver
- Type: SystemString
The filename of the driver. - name
- Type: SystemString
An optional description of the driver.
Return Value
Type: Int32If successful, the new device number is returned (which might be used in a subsequent BASS_ASIO_Init(Int32, BASSASIOInit) call), else -1 is returned. Use BASS_ASIO_ErrorGetCodeto get the error code.
Remarks
A list of installed ASIO drivers is kept in the Windows registry, which is where BASSASIO gets its device list from, but it is also possible to add unregistered drivers (eg. private drivers) to the list via this function. If successful, the returned device number can be used in a BASS_ASIO_Init(Int32, BASSASIOInit) call to use the driver.
The driver and name strings are expected to be in ANSI form unless Unicode device information has been enabled via BASS_ASIO_SetUnicode, in which case they are expected to be in UTF-16 form
ERROR CODE | Description |
---|---|
BASS_ERROR_FILEOPEN | The driver file does not exist. |
See Also