summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asset_defs.h2
-rw-r--r--include/audio.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/asset_defs.h b/include/asset_defs.h
index 7001403..002ad23 100644
--- a/include/asset_defs.h
+++ b/include/asset_defs.h
@@ -69,6 +69,8 @@ Mix_Chunk* wav_impact_wood;
Mix_Chunk* wav_error;
Mix_Chunk* wav_collect;
+Mix_Chunk* round_change;
+
void load_assets();
font* get_font(platform_window* window, float scale);
diff --git a/include/audio.h b/include/audio.h
index a22ec95..d9343e5 100644
--- a/include/audio.h
+++ b/include/audio.h
@@ -22,6 +22,7 @@ typedef enum t_audio_event_type {
EVENT_IMPACT,
EVENT_COLLECT,
EVENT_FIRE,
+ EVENT_ROUND_CHANGE,
} audio_event_type;
typedef struct t_audio_event {
@@ -36,12 +37,15 @@ typedef struct t_audio_event {
#define MAX_AUDIO_EVENTS 20
audio_event audio_events[MAX_AUDIO_EVENTS] = {0};
+bool audio_channel_usage[NUM_AUDIO_CHANNELS] = {0};
int max_audio_events = MAX_AUDIO_EVENTS;
+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);
void add_object_audio_event_to_queue(audio_event_type event, object_type obj, u32 playerid, vec3f position);
void add_audio_event_to_queue(audio_event_type event, u32 playerid, vec3f position);
+void add_ui_audio_event_to_queue(audio_event_type event);
void play_sounds_in_queue();
void clear_sounds_in_queue();
void play_sound(int channel, Mix_Chunk* wav);