summaryrefslogtreecommitdiff
path: root/include/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/audio.h')
-rw-r--r--include/audio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/audio.h b/include/audio.h
index b4657d7..47cd10e 100644
--- a/include/audio.h
+++ b/include/audio.h
@@ -5,11 +5,13 @@
#define CHANNEL_THROWABLES 0
#define CHANNEL_SHOOTING 1
+#define CHANNEL_IMPACT 2
typedef enum t_audio_event_type {
EVENT_SHOOT,
EVENT_RELOAD,
EVENT_BOUNCE_THROWABLE,
+ EVENT_IMPACT,
} audio_event_type;
typedef struct t_audio_event {
@@ -17,12 +19,14 @@ typedef struct t_audio_event {
audio_event_type type;
u32 playerid;
vec3f position;
+ object_type obj;
} audio_event;
#define MAX_AUDIO_EVENTS 20
audio_event audio_events[MAX_AUDIO_EVENTS] = {0};
int max_audio_events = MAX_AUDIO_EVENTS;
+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 play_sounds_in_queue();
void clear_sounds_in_queue();