diff options
| author | Teddy Wing | 2022-10-27 00:02:05 +0200 |
|---|---|---|
| committer | Teddy Wing | 2022-10-27 00:02:05 +0200 |
| commit | 892f6e2ff9de79d2d19999171bdb2f95ad619562 (patch) | |
| tree | ad62a04a8a82ec5d61aec10071cd4d25f2ec4331 | |
| parent | 832142e7223e67aca2bdf77eeb4219878cf789d0 (diff) | |
| download | SSVLSystemAlertVolume-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.
| -rw-r--r-- | SSVLSystemAlertVolume.c | 2 |
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; } |
