Volume Control
Application-specific hotkeys for Windows
VolumeControl.CoreAudio.Helpers.AudioControlExtensions Class Reference

Extension methods for any class that implements the IAudioControl interface. More...

Collaboration diagram for VolumeControl.CoreAudio.Helpers.AudioControlExtensions:

Static Public Member Functions

static void IncreaseNativeVolume (this IAudioControl audioControl, float amount)
 Increases the native volume by the specified amount . More...
 
static void DecreaseNativeVolume (this IAudioControl audioControl, float amount)
 Decreases the native volume by the specified amount . More...
 
static void IncreaseVolume (this IAudioControl audioControl, int amount)
 Increases the volume level by the specified amount . More...
 
static void DecreaseVolume (this IAudioControl audioControl, int amount)
 Decreases the volume level by the specified amount . More...
 
static void SetMute (this IAudioControl audioControl, bool muteState)
 Sets the specified muteState . More...
 
static void ToggleMute (this IAudioControl audioControl)
 Toggles the mute state. More...
 
static void SetState (this IAudioControl audioControl, IAudioControl other)
 Sets the volume level & mute state to the values in the specified other instance. More...
 
static void SetState (this IAudioControl audioControl, IReadOnlyAudioControl readOnlyAudioControl)
 Sets the volume level & mute state to the ones in the specified readOnlyAudioControl . More...
 

Detailed Description

Extension methods for any class that implements the IAudioControl interface.

Member Function Documentation

◆ DecreaseNativeVolume()

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.DecreaseNativeVolume ( this IAudioControl  audioControl,
float  amount 
)
static

Decreases the native volume by the specified amount .

Parameters
audioControl(implicit) IAudioControl instance.
amountThe amount to subtract from the native volume.

◆ DecreaseVolume()

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.DecreaseVolume ( this IAudioControl  audioControl,
int  amount 
)
static

Decreases the volume level by the specified amount .

Parameters
audioControl(implicit) IAudioControl instance.
amountThe amount to subtract from the current volume level.

◆ IncreaseNativeVolume()

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.IncreaseNativeVolume ( this IAudioControl  audioControl,
float  amount 
)
static

Increases the native volume by the specified amount .

Parameters
audioControl(implicit) IAudioControl instance.
amountThe amount to add to the native volume.

◆ IncreaseVolume()

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.IncreaseVolume ( this IAudioControl  audioControl,
int  amount 
)
static

Increases the volume level by the specified amount .

Parameters
audioControl(implicit) IAudioControl instance.
amountThe amount to add to the current volume level.

◆ SetMute()

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.SetMute ( this IAudioControl  audioControl,
bool  muteState 
)
static

Sets the specified muteState .

Parameters
audioControl(implicit) IAudioControl instance.
muteStatetrue to mute; false to unmute.

◆ SetState() [1/2]

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.SetState ( this IAudioControl  audioControl,
IAudioControl  other 
)
static

Sets the volume level & mute state to the values in the specified other instance.

Parameters
audioControl(implicit) IAudioControl instance.
otherAnother IAudioControl instance to get the volume & mute state values from..

References VolumeControl.CoreAudio.Interfaces.IAudioControl.Mute, and VolumeControl.CoreAudio.Interfaces.IAudioControl.Volume.

◆ SetState() [2/2]

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.SetState ( this IAudioControl  audioControl,
IReadOnlyAudioControl  readOnlyAudioControl 
)
static

Sets the volume level & mute state to the ones in the specified readOnlyAudioControl .

Parameters
audioControl(implicit) IAudioControl instance.
readOnlyAudioControlIReadOnlyAudioControl instance containing the values to set.

References VolumeControl.CoreAudio.Interfaces.IAudioControl.Mute, VolumeControl.CoreAudio.Interfaces.IReadOnlyAudioControl.Mute, VolumeControl.CoreAudio.Interfaces.IAudioControl.Volume, and VolumeControl.CoreAudio.Interfaces.IReadOnlyAudioControl.Volume.

◆ ToggleMute()

static void VolumeControl.CoreAudio.Helpers.AudioControlExtensions.ToggleMute ( this IAudioControl  audioControl)
static

Toggles the mute state.

Parameters
audioControl(implicit) IAudioControl instance.

The documentation for this class was generated from the following file: