summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2023-12-24 11:19:35 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2023-12-24 11:19:35 +0100
commitff3de32a164619ee1599c4f43600872f6cf955c4 (patch)
tree34ad875d0ba1054e6dd7406f103101c480901309 /include
parentcb9c0f812695da554e1feb5afe71b38324b65103 (diff)
music
Diffstat (limited to 'include')
-rw-r--r--include/asset_defs.h1
-rw-r--r--include/audio.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/asset_defs.h b/include/asset_defs.h
index 9cfc48b..e1dd72a 100644
--- a/include/asset_defs.h
+++ b/include/asset_defs.h
@@ -73,6 +73,7 @@ Mix_Chunk* wav_character;
Mix_Chunk* wav_round_change;
Mix_Chunk* wav_step;
+Mix_Music* music_inside1;
void load_assets();
font* get_font(platform_window* window, float scale);
diff --git a/include/audio.h b/include/audio.h
index b2bdf1b..705748e 100644
--- a/include/audio.h
+++ b/include/audio.h
@@ -42,6 +42,7 @@ audio_event audio_events[MAX_AUDIO_EVENTS] = {0};
bool audio_channel_usage[NUM_AUDIO_CHANNELS] = {0};
int max_audio_events = MAX_AUDIO_EVENTS;
+void play_music(Mix_Music* music);
void audio_channel_finished(int channel);
void add_throwable_audio_event_to_queue(audio_event_type event, throwable_type throwable, u32 playerid, vec3f position);
void add_zombie_audio_event_to_queue(audio_event_type event, zombie_type zombie, u32 playerid, vec3f position);