BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_GetVolume Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves the current master volume level.

Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
public static float BASS_GetVolume()

Return Value

Type: Single
If 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 CODEDescription
BASS_ERROR_INITBASS_Init(Int32, Int32, BASSInit, IntPtr, IntPtr) has not been successfully called.
BASS_ERROR_NOTAVAILThere is no volume control when using the "no sound" device.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference