aboutsummaryrefslogtreecommitdiffstats
path: root/SSVLSystemAlertVolume.c
diff options
context:
space:
mode:
authorTeddy Wing2022-10-27 00:02:05 +0200
committerTeddy Wing2022-10-27 00:02:05 +0200
commit892f6e2ff9de79d2d19999171bdb2f95ad619562 (patch)
treead62a04a8a82ec5d61aec10071cd4d25f2ec4331 /SSVLSystemAlertVolume.c
parent832142e7223e67aca2bdf77eeb4219878cf789d0 (diff)
downloadSSVLSystemAlertVolume-892f6e2ff9de79d2d19999171bdb2f95ad619562.tar.bz2
SSVLGetSystemVolume: Don't return 0.5 on non-zero OSStatus
That's what the Sound preference pane does, but I think it makes more sense to have library consumers make that decision.
Diffstat (limited to 'SSVLSystemAlertVolume.c')
-rw-r--r--SSVLSystemAlertVolume.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/SSVLSystemAlertVolume.c b/SSVLSystemAlertVolume.c
index 74c6429..d16204c 100644
--- a/SSVLSystemAlertVolume.c
+++ b/SSVLSystemAlertVolume.c
@@ -13,8 +13,6 @@ OSStatus SSVLGetSystemVolume(Float32 *volume) {
volume
);
- // TODO: Sound PrefPane: If result != noErr, return 0.5?
-
if (*volume != 0) {
*volume = log(*volume) + 1.0;
}