aboutsummaryrefslogtreecommitdiffstats
path: root/SSVLSystemAlertVolume.c
diff options
context:
space:
mode:
Diffstat (limited to 'SSVLSystemAlertVolume.c')
-rw-r--r--SSVLSystemAlertVolume.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/SSVLSystemAlertVolume.c b/SSVLSystemAlertVolume.c
index b425bf8..9435f05 100644
--- a/SSVLSystemAlertVolume.c
+++ b/SSVLSystemAlertVolume.c
@@ -36,27 +36,3 @@ OSStatus SSVLSetSystemVolume(Float32 volume) {
&volume
);
}
-
-int main() {
- OSStatus result;
-
- Float32 volume;
-
- result = system_volume_get(&volume);
- if (result != noErr) {
- printf("Error getting system volume: %d\n", result);
- return 1;
- }
-
- printf("System volume: %f\n", volume);
-
-
- Float32 new_volume = 0.5;
- result = system_volume_set(new_volume);
- if (result != noErr) {
- printf("Error setting system volume: %d\n", result);
- return 1;
- }
-
- printf("Set volume to: %f\n", new_volume);
-}