Copyright © 2006-2025 MultiMedia Soft

CoreAudioDevices.SessionMuteGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the audio muting state of the current session. The muting state can be modified through the CoreAudioDevices.SessionMuteSet method.

You can be notified in real-time about session's volume changes performed through the Windows Mixer by catching the CoreAudioSessionVolumeChange event.

 

This method is only intended for usage with Windows Vista and later versions: further information about management of audio devices in Windows Vista and later versions can be found inside the How to access settings of audio devices in Windows Vista and later versions tutorial.

For further details about methods related to the management of core audio devices refer to the CoreAudioDevicesMan class.

 

 

Syntax

 

[Visual Basic]

Public Function SessionMuteGet (

ByRef bMute as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes SessionMuteGet (

ref bool bMute

);


 

[C++]

public: enumErrorCodes SessionMuteGet (

bool __gc *bMute

);


 

Parameter

Description

 

 

bMute

Reference that, on return from the method call, will contain the muting state.

Supported values are the following:

Mnemonic constant

Meaning

false

The audio is not muted

true

The audio is muted

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.