Contains functions to control the system's master volume.
More...
#include <juce_SystemAudioVolume.h>
Contains functions to control the system's master volume.
{Audio}
◆ SystemAudioVolume()
juce::SystemAudioVolume::SystemAudioVolume |
( |
| ) |
|
|
private |
◆ getGain()
static float juce::SystemAudioVolume::getGain |
( |
| ) |
|
|
static |
Returns the operating system's current volume level in the range 0 to 1.0.
◆ isMuted()
static bool juce::SystemAudioVolume::isMuted |
( |
| ) |
|
|
static |
Returns true if the system's audio output is currently muted.
◆ setGain()
static bool juce::SystemAudioVolume::setGain |
( |
float |
newGain | ) |
|
|
static |
Attempts to set the operating system's current volume level.
- Parameters
-
newGain | the level, between 0 and 1.0 |
- Returns
- true if the operation succeeds
◆ setMuted()
static bool juce::SystemAudioVolume::setMuted |
( |
bool |
shouldBeMuted | ) |
|
|
static |
Attempts to mute the operating system's audio output.
- Parameters
-
shouldBeMuted | true if you want it to be muted |
- Returns
- true if the operation succeeds
The documentation for this class was generated from the following file: