blob: 8f9cfc58d18a1ae89075d5d745055ee9585aa966 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef SSVLSystemAlertVolume_h
#define SSVLSystemAlertVolume_h
#include <AudioToolbox/AudioToolbox.h>
#include <CoreFoundation/CoreFoundation.h>
// Get the system alert volume.
//
// Sets `volume` to the current system alert volume.
//
// Returns the result of `AudioServicesGetProperty`.
OSStatus SSVLGetSystemVolume(Float32 *volume);
// Set the system alert volume.
//
// The input `volume` must be a float between 0 an 1.
//
// Returns the result of `AudioServicesSetProperty`.
OSStatus SSVLSetSystemVolume(Float32 volume);
#endif /* SSVLSystemAlertVolume_h */
|