diff options
author | Teddy Wing | 2022-10-27 22:02:09 +0200 |
---|---|---|
committer | Teddy Wing | 2022-10-27 22:02:09 +0200 |
commit | 27f6f31e16cc676b30edb0bc3ef2b0a2faec9b39 (patch) | |
tree | c9624c786b992af410f5f319e90351f628d64dca /SSVLSystemAlertVolume.c | |
parent | 65efc01ff90ca457a7655824765f4ed473672a00 (diff) | |
download | SSVLSystemAlertVolume-27f6f31e16cc676b30edb0bc3ef2b0a2faec9b39.tar.bz2 |
Add documentation for SSVLAudioServicesPropertySystemAlertVolume
Diffstat (limited to 'SSVLSystemAlertVolume.c')
-rw-r--r-- | SSVLSystemAlertVolume.c | 7 |
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) { |