summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2024-01-07 12:59:38 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2024-01-07 12:59:38 +0100
commit6376a9ccecf911b8ffbcc3dba6e93ecc79ba75fb (patch)
tree537529d90d1771e15ffe888bde16d7a18c3313e7 /include
parent33f39cd8ef08db0007c9690992bad99edbaa1795 (diff)
fix channel mess
Diffstat (limited to 'include')
-rw-r--r--include/audio.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/audio.h b/include/audio.h
index 6414f5a..9ee0bfd 100644
--- a/include/audio.h
+++ b/include/audio.h
@@ -40,13 +40,11 @@ typedef struct t_audio_event {
throwable_type throwable;
} audio_event;
-#define MAX_AUDIO_EVENTS 20
+#define MAX_AUDIO_EVENTS (NUM_AUDIO_CHANNELS)
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, vec3f position);
void add_object_audio_event_to_queue(audio_event_type event, object_type obj, u32 playerid, vec3f position);