From 18c1dfbb78d98516f5480f8199910fe41ac904df Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 28 Oct 2023 10:52:18 +0200 Subject: sound layer, bouncing --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index db768e6..e414f81 100644 --- a/main.c +++ b/main.c @@ -8,6 +8,7 @@ #include "include/players.h" #include "include/objects.h" #include "include/map.h" +#include "include/audio.h" #include "include/zombies.h" #include "include/math_helper.h" #include "include/bullets.h" @@ -29,6 +30,7 @@ #include "src/map.c" #include "src/players.c" #include "src/objects.c" +#include "src/audio.c" #include "src/zombies.c" #include "src/bullets.c" #include "src/throwables.c" @@ -90,6 +92,7 @@ int main(int argc, char **argv) if (Mix_OpenAudio(48000, AUDIO_F32SYS, 2, 2048) == 0) { log_info("Audio system initialized."); + Mix_MasterVolume(MIX_MAX_VOLUME/4); } else { log_info("Audio failed."); -- cgit v1.2.3-70-g09d2