audio: add dodge, block, crit, and proc sounds

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I860551db6ca06a34785e9129b64d8fc56a6a6964
This commit is contained in:
raf 2026-04-05 22:35:03 +03:00
commit c495dc1d7e
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 35 additions and 0 deletions

View file

@ -98,3 +98,26 @@ void audio_play_stairs(void) {
play_tone(600.0f, 0.1f, 0.3f); play_tone(600.0f, 0.1f, 0.3f);
play_tone(800.0f, 0.15f, 0.3f); play_tone(800.0f, 0.15f, 0.3f);
} }
void audio_play_dodge(void) {
// High-pitched whoosh
play_tone(900.0f, 0.08f, 0.3f);
}
void audio_play_block(void) {
// Low-then-mid metallic clang
play_tone(250.0f, 0.06f, 0.5f);
play_tone(350.0f, 0.04f, 0.3f);
}
void audio_play_crit(void) {
// Sharp crack with high-pitched follow
play_tone(600.0f, 0.05f, 0.7f);
play_tone(900.0f, 0.1f, 0.5f);
}
void audio_play_proc(void) {
// Ascending two-tone proc chime
play_tone(500.0f, 0.08f, 0.4f);
play_tone(700.0f, 0.1f, 0.35f);
}

View file

@ -25,4 +25,16 @@ void audio_play_player_damage(void);
// Play stairs/level change sound // Play stairs/level change sound
void audio_play_stairs(void); void audio_play_stairs(void);
// Play dodge sound
void audio_play_dodge(void);
// Play block sound
void audio_play_block(void);
// Play critical hit sound
void audio_play_crit(void);
// Play status effect proc sound
void audio_play_proc(void);
#endif // AUDIO_H #endif // AUDIO_H