diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-12-24 11:55:06 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-12-24 11:55:06 +0100 |
| commit | eefc69b2c3816ed4c97bf976b7373175b8e7343d (patch) | |
| tree | bf4b146e2667daacc7d5c838ee96c170966b306e /include | |
| parent | ff3de32a164619ee1599c4f43600872f6cf955c4 (diff) | |
auudio
Diffstat (limited to 'include')
| -rw-r--r-- | include/asset_defs.h | 3 | ||||
| -rw-r--r-- | include/audio.h | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/asset_defs.h b/include/asset_defs.h index e1dd72a..57613de 100644 --- a/include/asset_defs.h +++ b/include/asset_defs.h @@ -73,6 +73,9 @@ Mix_Chunk* wav_character; Mix_Chunk* wav_round_change; Mix_Chunk* wav_step; +#define NUM_SCREECHES 11 +Mix_Chunk* wav_screech[NUM_SCREECHES]; + Mix_Music* music_inside1; void load_assets(); diff --git a/include/audio.h b/include/audio.h index 705748e..1ab8322 100644 --- a/include/audio.h +++ b/include/audio.h @@ -25,6 +25,7 @@ typedef enum t_audio_event_type { EVENT_ROUND_CHANGE, EVENT_CHARACTER_TYPE, EVENT_FOOTSTEP, + EVENT_ZOMBIESCREECH, } audio_event_type; typedef struct t_audio_event { @@ -45,7 +46,7 @@ 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); +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); 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); |
