BASS_CONFIG_DEV_NOTIFY config option
A function to receive device list notifications.
BASS_SetConfigPtr(
BASS_CONFIG_DEV_NOTIFY,
DEVICENOTIFYPROC *proc
);
Parameters
proc | The callback function... NULL = none.
|
Remarks
If you want to know when the device lists change, you could periodically poll BASS_GetDeviceInfo and/or BASS_RecordGetDeviceInfo, but this option provides a more efficient way. It sets a function that is called whenever the device list changes in some way. The function can be changed or removed at any time, except it should not be removed from within itself.
Platform-specific
This config option is only available on Windows (Vista and above) and macOS.
If BASS.DLL is loaded dynamically on Windows (eg. via LoadLibrary), this option should be reset to NULL prior to unloading the DLL.
See also
BASS_GetConfigPtr, BASS_SetConfigPtr