From a89f892640cf12f75c7ce18e6e88c70a8d3965ed Mon Sep 17 00:00:00 2001 From: Uneven Prankster Date: Sat, 23 Sep 2023 19:28:45 -0300 Subject: things can always be nicer :D --- src/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 4fc9bc2..4160b94 100644 --- a/src/main.c +++ b/src/main.c @@ -5,6 +5,7 @@ #include "controller.h" #include "rand_sys.h" +#include "audio_sys.h" int main() { @@ -12,6 +13,8 @@ int main() SetTargetFPS(60); + InitAudioDevice(); + rand_seed(); init_tex_sys(); @@ -22,6 +25,8 @@ int main() float dt = GetFrameTime(); poll_rumble(dt); + update_audio(); + update_textures(); update_shaders(); @@ -31,10 +36,15 @@ int main() EndDrawing(); } + unload_active_audio(); + unload_current_music(); + deinit_script_sys(); unload_active_textures(); unload_active_shaders(); + CloseAudioDevice(); + CloseWindow(); return 0; } \ No newline at end of file -- cgit v1.2.3