diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 10:52:18 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 10:52:18 +0200 |
| commit | 18c1dfbb78d98516f5480f8199910fe41ac904df (patch) | |
| tree | 8ee69fde44ac3b8969ebf529883656a2d05b1e45 /main.c | |
| parent | 641f81317a5b5cea6b3c5a4c65b1ca4313b0d8c0 (diff) | |
sound layer, bouncing
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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."); |
