BASS.NET API for the Un4seen BASS Audio LibraryBassWasapiBASS_WASAPI_GetMute Method BASS.NET API for the Un4seen BASS Audio Library
Gets the mute status of the current Wasapi device/driver (endpoint).

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

public static bool BASS_WASAPI_GetMute(
	BASSWASAPIVolume mode


Type: Un4seen.BassWasapiBASSWASAPIVolume
The type of volume to get:
BASS_WASAPI_VOL_SESSIONGet the session volume.
BASS_WASAPI_VOL_DEVICEGet the device volume.

Return Value

Type: Boolean
Returns , if the device/session is muted and if unmuted, else -1 is returned. Use BASS_ErrorGetCode to get the error code.

When using multiple devices, the current thread's device setting (as set with BASS_WASAPI_SetDevice(Int32)) determines which device this function call applies to.

ERROR CODEDescription
BASS_ERROR_INITBASS_WASAPI_Init(Int32, Int32, Int32, BASSWASAPIInit, Single, Single, WASAPIPROC, IntPtr) has not been successfully called.
BASS_ERROR_NOTAVAILThere is no volume control available.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also