BASS_WASAPI_GetVolume
Retrieves the current volume level.
float BASS_WASAPI_GetVolume(
DWORD mode
);
Parameters
mode | The type of volume to get and the curve to use.
BASS_WASAPI_VOL_SESSION | Get the session volume, else the device volume.
| BASS_WASAPI_CURVE_DB | Use a logarithmic curve. This is the default if no curve is specified.
| BASS_WASAPI_CURVE_LINEAR | Use a linear curve.
| BASS_WASAPI_CURVE_WINDOWS | Use Windows' hybrid curve, as used by Windows' volume controls. |
|
Return value
If successful, the volume level is returned, else -1 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 | Volume control is unavailable.
|
BASS_ERROR_UNKNOWN | Some other mystery problem!
|
Remarks
Session volume always uses the BASS_WASAPI_CURVE_WINDOWS curve.
When using multiple devices, the current thread's device setting (as set with BASS_WASAPI_SetDevice) determines which device this function call applies to.
See also
BASS_WASAPI_SetVolume