BASS.NET API for the Un4seen BASS Audio LibraryBassAsioBASS_ASIO_AddDevice Method BASS.NET API for the Un4seen BASS Audio Library
Adds a driver to the device list.

Namespace: Un4seen.BassAsio
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public static int BASS_ASIO_AddDevice(
	Guid clsid,
	string driver,
	string name
)

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: Int32
If 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 CODEDescription
BASS_ERROR_FILEOPENThe driver file does not exist.

See Also

Reference