From ff3de32a164619ee1599c4f43600872f6cf955c4 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 24 Dec 2023 11:19:35 +0100 Subject: music --- include/asset_defs.h | 1 + include/audio.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.3-70-g09d2