Retrieves the current master volume level.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Return Value
Type: SingleIf successful, the volume level is returned, else -1.0 is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
The volume level... 0 (silent) to 1 (max) will be returned.
When using multiple devices, the current thread's device setting (as set with BASS_SetDevice(Int32)) determines which device this function call applies to.
ERROR CODE | Description |
---|---|
BASS_ERROR_INIT | BASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) has not been successfully called. |
BASS_ERROR_NOTAVAIL | There is no volume control when using the "no sound" device. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
See Also