Unknown
From BASS WAS API
BASS_WASAPI_GetLevelEx
Retrieves the level.
BOOL BASS_WASAPI_GetLevelEx(
float *levels,
float length,
DWORD flags
);
Parameters
| levels | An array to receive the levels. | ||||||
| length | The amount of data to inspect to calculate the level, in seconds. The maximum is 1 second. Less data than requested may be used if the full amount is not available, eg. if the device's buffer is shorter. | ||||||
| flags | A combination of these flags.
|
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.Error codes
| BASS_ERROR_INIT | BASS_WASAPI_Init has not been successfully called. |
| BASS_ERROR_NOTAVAIL | The BASS_WASAPI_BUFFER flag was not specified in the device's initialization. |
| BASS_ERROR_ILLPARAM | length is not valid. |
Remarks
This function uses BASS_ChannelGetLevelEx internally, so it behaves identically to that.The BASS_WASAPI_BUFFER flag needs to have been specified in the device's initialization to enable the use of this function.