blob: 9ccf81f96d758f54375147fa27191b6ad983329d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#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 */
|