diff options
author | Teddy Wing | 2022-10-25 01:37:31 +0200 |
---|---|---|
committer | Teddy Wing | 2022-10-25 01:37:46 +0200 |
commit | 425bc1c25bd676e3ed52f92434cb44643f83da45 (patch) | |
tree | a604294c12af6d29de79f8244b56608140732719 /SSVLSystemAlertVolume.c | |
parent | 5a5d8b96cec6dca93bc6eb277b9766625a6d75c4 (diff) | |
download | SSVLSystemAlertVolume-425bc1c25bd676e3ed52f92434cb44643f83da45.tar.bz2 |
Move the `main()` function to a new example file
Diffstat (limited to 'SSVLSystemAlertVolume.c')
-rw-r--r-- | SSVLSystemAlertVolume.c | 24 |
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); -} |