mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
New class: SystemAudioVolume to control the OS's master volume. (Implemented only for OSX and Windows)
This commit is contained in:
parent
d9f1b72067
commit
ff114947e4
20 changed files with 315 additions and 42 deletions
|
|
@ -46,6 +46,7 @@
|
|||
#import <CoreAudio/AudioHardware.h>
|
||||
#import <CoreMIDI/MIDIServices.h>
|
||||
#import <DiscRecording/DiscRecording.h>
|
||||
#import <AudioToolbox/AudioServices.h>
|
||||
#undef Point
|
||||
#undef Component
|
||||
|
||||
|
|
@ -233,4 +234,11 @@ namespace juce
|
|||
|
||||
#endif
|
||||
|
||||
#if ! JUCE_SYSTEMAUDIOVOL_IMPLEMENTED
|
||||
// None of these methods are available. (On Windows you might need to enable WASAPI for this)
|
||||
float JUCE_CALLTYPE SystemAudioVolume::getGain() { jassertfalse; return 0.0f; }
|
||||
bool JUCE_CALLTYPE SystemAudioVolume::setGain (float gain) { jassertfalse; return false; }
|
||||
bool JUCE_CALLTYPE SystemAudioVolume::isMuted() { jassertfalse; return false; }
|
||||
bool JUCE_CALLTYPE SystemAudioVolume::setMuted (bool mute) { jassertfalse; return false; }
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue