aboutsummaryrefslogtreecommitdiff
path: root/src/audio_sys.h
diff options
context:
space:
mode:
authorUneven Prankster <unevenprankster@protonmail.com>2023-08-27 20:15:02 -0300
committerUneven Prankster <unevenprankster@protonmail.com>2023-08-27 20:15:02 -0300
commit83505b7be49dbf7789deb814bd159d9c37181d05 (patch)
tree29446b7b065ee7e100673f9892d3655c354791db /src/audio_sys.h
parentc74edede22703d5d55cde4aa042ee206ac5a4cf6 (diff)
Now with keyboard/mouse things!
Diffstat (limited to 'src/audio_sys.h')
-rw-r--r--src/audio_sys.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/audio_sys.h b/src/audio_sys.h
new file mode 100644
index 0000000..8a5b6cc
--- /dev/null
+++ b/src/audio_sys.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include "config.h"
+
+// 8 max
+i32 load_audio(const char* path);
+void play_audio(i32 idx);
+void pause_audio(i32 idx);
+
+// Only one at any given time.
+// In the future you can load a second one
+// It'll be a copy of the one from my Godot games
+i32 load_music(const char* path);
+void play_music(void);
+
+// It would be more convenient if the files had this info
+// But it's better to just let you control this for now.
+void set_music_loop(b32 loop);
+void set_music_loop_point(f32 point);
+
+void pause_music(void);
+void replay_music(void);
+
+void update_audio_sys(void);
+void unload_active_audio(void);
+void unload_current_music(void); \ No newline at end of file