diff options
author | Teddy Wing | 2022-10-27 01:40:12 +0200 |
---|---|---|
committer | Teddy Wing | 2022-10-27 01:41:28 +0200 |
commit | 2e513617208a8aa3b97107ed2bd1fbb9b5476a30 (patch) | |
tree | 7885810787e4b63f4582d9a41058661905514416 /example/main.c | |
parent | 44265f9a98916c1fbd523ceb008e3b77fd4aaffb (diff) | |
download | SSVLSystemAlertVolume-2e513617208a8aa3b97107ed2bd1fbb9b5476a30.tar.bz2 |
Build the example
* Add a Makefile to build the example code.
* Update the example to use the new function names.
* Add the library to `example/` with symlinks to simulate a submodule.
Diffstat (limited to 'example/main.c')
-rw-r--r-- | example/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/example/main.c b/example/main.c index 327b88c..6a851fe 100644 --- a/example/main.c +++ b/example/main.c @@ -1,9 +1,11 @@ +#include "./lib/SSVLSystemAlertVolume.h" + int main() { OSStatus result; Float32 volume; - result = system_volume_get(&volume); + result = SSVLGetSystemVolume(&volume); if (result != noErr) { printf("Error getting system volume: %d\n", result); return 1; @@ -13,7 +15,7 @@ int main() { Float32 new_volume = 0.5; - result = system_volume_set(new_volume); + result = SSVLSetSystemVolume(new_volume); if (result != noErr) { printf("Error setting system volume: %d\n", result); return 1; |