JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::SystemAudioVolume Class Reference

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

#include <juce_SystemAudioVolume.h>

Static Public Member Functions

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

Private Member Functions

 SystemAudioVolume ()
 

Detailed Description

Contains functions to control the system's master volume.

{Audio}

Constructor & Destructor Documentation

◆ SystemAudioVolume()

juce::SystemAudioVolume::SystemAudioVolume ( )
private

Member Function Documentation

◆ 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
newGainthe 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
shouldBeMutedtrue if you want it to be muted
Returns
true if the operation succeeds

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