From 34a5de28f0b467ec3177da5b9516d06a69b07f58 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 2 Nov 2023 15:23:46 -0700 Subject: sfx: add volume control to sfx_play() Preparatory commit for experimenting with varying volumes based on distance. Impetus is an interest in making the TV clips always play when the TV appears, but vary the volume with distance. --- src/sfx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sfx.h') diff --git a/src/sfx.h b/src/sfx.h index a37b22c..48d797b 100644 --- a/src/sfx.h +++ b/src/sfx.h @@ -48,6 +48,6 @@ typedef struct sfx_t { extern sfx_t sfx; void sfx_init(void); -void sfx_play(sfx_sound_t *sound); +void sfx_play(sfx_sound_t *sound, float volume); #endif -- cgit v1.2.3