Adds a driver to the device list.

    GUID *clsid,
    char *driver,
    char *name


clsidThe driver's class ID.
driverThe filename of the driver.
nameDescription of the device.

Return value

If successful, the new device number is returned, else -1 is returned. Use BASS_ASIO_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_FILEOPENThe driver file does not exist.


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 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.

See also