WASAPINOTIFYPROC callback
User defined notification callback function.
void CALLBACK WasapiNotifyProc(
DWORD notify,
DWORD device,
void *user
);
Parameters
notify | The notification, one of the following.
BASS_WASAPI_NOTIFY_ENABLED | The device has been enabled.
| BASS_WASAPI_NOTIFY_DISABLED | The device has been disabled/disconnected.
| BASS_WASAPI_NOTIFY_DEFINPUT | The device is now the default input device.
| BASS_WASAPI_NOTIFY_DEFOUTPUT | The device is now the default output device.
| BASS_WASAPI_NOTIFY_FAIL | The device has failed and been stopped. If the device is still enabled and shared mode was being used, then it may be that the device's sample format has changed. It can be freed and reinitialized, with BASS_WASAPI_Free and BASS_WASAPI_Init, to resume in that case.
|
|
device | The device that the notification applies to.
|
user | The user instance data given when BASS_WASAPI_SetNotify was called.
|
Remarks
BASS_WASAPI_Free should not be called from within a WASAPINOTIFYPROC callback.
See also
BASS_WASAPI_GetDeviceInfo,
BASS_WASAPI_SetNotify