aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorUneven Prankster <unevenprankster@protonmail.com>2023-09-23 19:28:45 -0300
committerUneven Prankster <unevenprankster@protonmail.com>2023-09-23 19:28:45 -0300
commita89f892640cf12f75c7ce18e6e88c70a8d3965ed (patch)
treee917bda607b86cb7c5bd80df2e5abf549d972163 /src/main.c
parent83505b7be49dbf7789deb814bd159d9c37181d05 (diff)
things can always be nicer :D
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 10 insertions, 0 deletions
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