Méthode | Description | |
---|---|---|
GetApplicationMute ( int pid ) : bool? | ||
GetApplicationVolume ( int pid ) : float? | ||
GetMasterVolume ( ) : float |
Gets the current master volume in scalar values (percentage)
|
|
GetMasterVolumeMute ( ) : bool |
Gets the mute state of the master volume. While the volume can be muted the GetMasterVolume will still return the pre-muted volume value.
|
|
SetApplicationMute ( int pid, bool mute ) : void | ||
SetApplicationVolume ( int pid, float level ) : void | ||
SetMasterVolume ( float newLevel ) : void |
Sets the master volume to a specific level
|
|
SetMasterVolumeMute ( bool isMuted ) : void |
Mute or unmute the master volume
|
|
StepMasterVolume ( float stepAmount ) : float |
Increments or decrements the current volume level by the stepAmount.
|
|
ToggleMasterVolumeMute ( ) : bool |
Switches between the master volume mute states depending on the current state
|
Méthode | Description | |
---|---|---|
GetMasterVolumeObject ( ) : IAudioEndpointVolume | ||
GetVolumeObject ( int pid ) : ISimpleAudioVolume |
public static GetApplicationMute ( int pid ) : bool? | ||
pid | int | |
Résultat | bool? |
public static GetApplicationVolume ( int pid ) : float? | ||
pid | int | |
Résultat | float? |
public static GetMasterVolumeMute ( ) : bool | ||
Résultat | bool |
public static SetApplicationMute ( int pid, bool mute ) : void | ||
pid | int | |
mute | bool | |
Résultat | void |
public static SetApplicationVolume ( int pid, float level ) : void | ||
pid | int | |
level | float | |
Résultat | void |
public static SetMasterVolume ( float newLevel ) : void | ||
newLevel | float | Value between 0 and 100 indicating the desired scalar value of the volume |
Résultat | void |
public static SetMasterVolumeMute ( bool isMuted ) : void | ||
isMuted | bool | true to mute the master volume, false to unmute |
Résultat | void |
public static StepMasterVolume ( float stepAmount ) : float | ||
stepAmount | float | Value between -100 and 100 indicating the desired step amount. Use negative numbers to decrease /// the volume and positive numbers to increase it. |
Résultat | float |
public static ToggleMasterVolumeMute ( ) : bool | ||
Résultat | bool |