Button sound effect (#312)

* Removed magic number for CARD_FOCUS_SFX_PITCH_OFFSET_RANGE
This commit is contained in:
MeirGavish
2025-12-13 16:10:15 +02:00
committed by GitHub
parent 8a9750b0b3
commit 81e6b7ab31
6 changed files with 77 additions and 31 deletions
+2 -2
View File
@@ -2,13 +2,13 @@
#include <maxmod.h>
void play_sfx(mm_word id, mm_word rate)
void play_sfx(mm_word id, mm_word rate, mm_byte volume)
{
mm_sound_effect sfx = {
{id},
rate,
0,
SFX_DEFAULT_VOLUME,
volume,
SFX_DEFAULT_PAN,
};
mmEffectEx(&sfx);