User defined output/input processing callback function.
DWORD CALLBACK WASAPIPROC( void *buffer, DWORD length, void *user );
|buffer||Pointer to the buffer to put the sample data for an output device, or to get the data from an input device. The sample data is always 32-bit floating-point.|
|length||The number of bytes to process.|
|user||The user instance data given when BASS_WASAPI_Init was called.|
If an output device has been initialized to use exclusive mode and less data than requested is returned, the remainder of the buffer will be filled with silence.
Do not call BASS_WASAPI_Free from within a callback function.
BASS_WASAPI_GetDevice can be used by the callback function to check which device it is dealing with.