Loading...
Searching...
No Matches
SystemAudioVolume Class Reference

Contains functions to control the system's master volume. More...

Static Public Member Functions

static float JUCE_CALLTYPE getGain ()
 Returns the operating system's current volume level in the range 0 to 1.0.
 
static bool JUCE_CALLTYPE setGain (float newGain)
 Attempts to set the operating system's current volume level.
 
static bool JUCE_CALLTYPE isMuted ()
 Returns true if the system's audio output is currently muted.
 
static bool JUCE_CALLTYPE setMuted (bool shouldBeMuted)
 Attempts to mute the operating system's audio output.
 

Detailed Description

Contains functions to control the system's master volume.

Member Function Documentation

◆ getGain()

static float JUCE_CALLTYPE SystemAudioVolume::getGain ( )
static

Returns the operating system's current volume level in the range 0 to 1.0.

References JUCE_CALLTYPE.

◆ setGain()

static bool JUCE_CALLTYPE SystemAudioVolume::setGain ( float newGain)
static

Attempts to set the operating system's current volume level.

Parameters
newGainthe level, between 0 and 1.0
Returns
true if the operation succeeds

References JUCE_CALLTYPE.

◆ isMuted()

static bool JUCE_CALLTYPE SystemAudioVolume::isMuted ( )
static

Returns true if the system's audio output is currently muted.

References JUCE_CALLTYPE.

◆ setMuted()

static bool JUCE_CALLTYPE SystemAudioVolume::setMuted ( bool shouldBeMuted)
static

Attempts to mute the operating system's audio output.

Parameters
shouldBeMutedtrue if you want it to be muted
Returns
true if the operation succeeds

References JUCE_CALLTYPE.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram