diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 14:50:52 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-28 14:50:52 +0200 |
| commit | 7d87e8e3e9eccbb3ae351f3218276b2dae506665 (patch) | |
| tree | 2a38f9ba83bb66c9e85b67aa7a18c4a4942e8d1f /include/audio.h | |
| parent | 5de0682c37fc8e9713bb566a637f19a3795abc4a (diff) | |
fix issue with sprites
Diffstat (limited to 'include/audio.h')
| -rw-r--r-- | include/audio.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/audio.h b/include/audio.h index 92d460c..b4657d7 100644 --- a/include/audio.h +++ b/include/audio.h @@ -19,8 +19,9 @@ typedef struct t_audio_event { vec3f position; } audio_event; -audio_event audio_events[20] = {0}; -int max_audio_events = 20; +#define MAX_AUDIO_EVENTS 20 +audio_event audio_events[MAX_AUDIO_EVENTS] = {0}; +int max_audio_events = MAX_AUDIO_EVENTS; void add_audio_event_to_queue(audio_event_type event, u32 playerid, vec3f position); void play_sounds_in_queue(); |
