aboutsummaryrefslogtreecommitdiffstats
path: root/SSVLSystemAlertVolume.c
diff options
context:
space:
mode:
authorTeddy Wing2022-10-27 22:02:09 +0200
committerTeddy Wing2022-10-27 22:02:09 +0200
commit27f6f31e16cc676b30edb0bc3ef2b0a2faec9b39 (patch)
treec9624c786b992af410f5f319e90351f628d64dca /SSVLSystemAlertVolume.c
parent65efc01ff90ca457a7655824765f4ed473672a00 (diff)
downloadSSVLSystemAlertVolume-27f6f31e16cc676b30edb0bc3ef2b0a2faec9b39.tar.bz2
Add documentation for SSVLAudioServicesPropertySystemAlertVolume
Diffstat (limited to 'SSVLSystemAlertVolume.c')
-rw-r--r--SSVLSystemAlertVolume.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/SSVLSystemAlertVolume.c b/SSVLSystemAlertVolume.c
index 4f6c270..8e50195 100644
--- a/SSVLSystemAlertVolume.c
+++ b/SSVLSystemAlertVolume.c
@@ -10,6 +10,13 @@
#include "SSVLSystemAlertVolume.h"
+// This property appears to be private, as it isn't defined in Apple's MacOSX
+// SDK framework headers.
+//
+// The value comes from the Sound preference pane. Disassembling the
+// `/System/Library/PreferencePanes/Sound.prefPane/Contents/MacOS/Sound` binary
+// shows that functions accessing the system alert volume do so via the
+// '0x7373766c' property. Converting that to a FourCharCode yields 'ssvl'.
const AudioServicesPropertyID SSVLAudioServicesPropertySystemAlertVolume = 'ssvl';
OSStatus SSVLGetSystemVolume(Float32 *volume) {