audio: refactor audio asset loading, add crit sound
This commit is contained in:
parent
23dead8c0d
commit
a315b14dd1
5 changed files with 66 additions and 44 deletions
17
src/audio.h
17
src/audio.h
|
|
@ -1,5 +1,6 @@
|
|||
#ifndef AUDIO_H
|
||||
#define AUDIO_H
|
||||
#include "common.h"
|
||||
|
||||
// Initialize audio system
|
||||
void audio_init(void);
|
||||
|
|
@ -11,28 +12,28 @@ void audio_close(void);
|
|||
void audio_play_move(void);
|
||||
|
||||
// Play attack sound
|
||||
void audio_play_attack(void);
|
||||
void audio_play_attack(GameState *gs);
|
||||
|
||||
// Play item pickup sound
|
||||
void audio_play_item_pickup(void);
|
||||
void audio_play_item_pickup(GameState *gs);
|
||||
|
||||
// Play enemy death sound
|
||||
void audio_play_enemy_death(void);
|
||||
void audio_play_enemy_death(GameState *gs);
|
||||
|
||||
// Play player damage sound
|
||||
void audio_play_player_damage(void);
|
||||
void audio_play_player_damage(GameState *gs);
|
||||
|
||||
// Play stairs/level change sound
|
||||
void audio_play_stairs(void);
|
||||
void audio_play_stairs(GameState *gs);
|
||||
|
||||
// Play dodge sound
|
||||
void audio_play_dodge(void);
|
||||
void audio_play_dodge(GameState *gs);
|
||||
|
||||
// Play block sound
|
||||
void audio_play_block(void);
|
||||
void audio_play_block(GameState *gs);
|
||||
|
||||
// Play critical hit sound
|
||||
void audio_play_crit(void);
|
||||
void audio_play_crit(GameState *gs);
|
||||
|
||||
// Play status effect proc sound
|
||||
void audio_play_proc(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue