Volume Control
Application-specific hotkeys for Windows
|
Extension methods for any class that implements the IAudioControl interface. More...
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... | |
Extension methods for any class that implements the IAudioControl interface.
|
static |
Decreases the native volume by the specified amount .
audioControl | (implicit) IAudioControl instance. |
amount | The amount to subtract from the native volume. |
|
static |
Decreases the volume level by the specified amount .
audioControl | (implicit) IAudioControl instance. |
amount | The amount to subtract from the current volume level. |
|
static |
Increases the native volume by the specified amount .
audioControl | (implicit) IAudioControl instance. |
amount | The amount to add to the native volume. |
|
static |
Increases the volume level by the specified amount .
audioControl | (implicit) IAudioControl instance. |
amount | The amount to add to the current volume level. |
|
static |
Sets the specified muteState .
audioControl | (implicit) IAudioControl instance. |
muteState | true to mute; false to unmute. |
|
static |
Sets the volume level & mute state to the values in the specified other instance.
audioControl | (implicit) IAudioControl instance. |
other | Another IAudioControl instance to get the volume & mute state values from.. |
References VolumeControl.CoreAudio.Interfaces.IAudioControl.Mute, and VolumeControl.CoreAudio.Interfaces.IAudioControl.Volume.
|
static |
Sets the volume level & mute state to the ones in the specified readOnlyAudioControl .
audioControl | (implicit) IAudioControl instance. |
readOnlyAudioControl | IReadOnlyAudioControl 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.
|
static |
Toggles the mute state.
audioControl | (implicit) IAudioControl instance. |