aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
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