BASS_WASAPI_SetMute

Mutes or unmutes the device.

BOOL BASS_WASAPI_SetMute(
    DWORD mode,
    BOOL mute
);

Parameters

modeThe type of volume to set.
BASS_WASAPI_VOL_SESSIONSet the session volume, else the device volume.
muteMute the device?

Return value

If successful, then TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_INITBASS_WASAPI_Init has not been successfully called.
BASS_ERROR_NOTAVAILVolume control is unavailable.
BASS_ERROR_UNKNOWNSome other mystery problem!

Remarks

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_GetMute, BASS_WASAPI_SetVolume