diff options
Diffstat (limited to 'SSVLSystemAlertVolume.h')
-rw-r--r-- | SSVLSystemAlertVolume.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/SSVLSystemAlertVolume.h b/SSVLSystemAlertVolume.h index 3bf1bc7..8f9cfc5 100644 --- a/SSVLSystemAlertVolume.h +++ b/SSVLSystemAlertVolume.h @@ -4,11 +4,18 @@ #include <AudioToolbox/AudioToolbox.h> #include <CoreFoundation/CoreFoundation.h> -// TODO: docs -// Float between 0 an 1. +// Get the system alert volume. +// +// Sets `volume` to the current system alert volume. +// +// Returns the result of `AudioServicesGetProperty`. OSStatus SSVLGetSystemVolume(Float32 *volume); -// TODO: docs +// 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 */ |