BASS WAS API

BASS_WASAPI_SetNotify


Sets a device change notification callback.

BOOL BASS_WASAPI_SetNotify(
    WASAPINOTIFYPROC *proc,
    void *user
);

Parameters

procUser defined notification function... NULL = disable notifications.
userUser instance data to pass to the callback function.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_WASAPIWASAPI is not available.

Remarks

A previously set notification callback can be changed or removed at any time by calling this function again.

If the BASSWASAPI DLL is loaded dynamically (eg. via LoadLibrary), this function should be called with NULL parameters prior to unloading the DLL.

See also

WASAPINOTIFYPROC callback