From 465064c78477ee1a7298edbede70f127b5590e8d Mon Sep 17 00:00:00 2001 From: ariahiro64 Date: Wed, 29 Sep 2021 01:40:29 -0400 Subject: [PATCH] add polish to sound stuff --- src/main.c | 4 +++- src/sound.c | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 0b9d838..48c494a 100755 --- a/src/main.c +++ b/src/main.c @@ -3252,6 +3252,7 @@ void handleInput(display_context_t disp, sprite_t *contr) switch (input_mapping) { case file_manager: + playSound(4); if (select_mode) { if (count != 0) @@ -3323,6 +3324,7 @@ void handleInput(display_context_t disp, sprite_t *contr) switch (input_mapping) { case file_manager: + playSound(4); if (select_mode) { if (count != 0) @@ -4544,7 +4546,7 @@ int main(void) } //todo: if bgm is enabled, we should start it... - //sndPlayBGM("rom://sounds/bgm21.it"); + sndPlayBGM("rom://sounds/bgm21.it"); border_color_1 = translate_color(border_color_1_s); border_color_2 = translate_color(border_color_2_s); diff --git a/src/sound.c b/src/sound.c index 34cbbc1..4d0485b 100755 --- a/src/sound.c +++ b/src/sound.c @@ -81,7 +81,7 @@ void sndPlayBGM(char* filename) if (moduleBGM) { Player_Start(moduleBGM); - Player_SetVolume(20); + Player_SetVolume(80); } } @@ -120,7 +120,7 @@ void sndPlaySFX(char* filename) } //audio_write_silence(); - Voice_SetVolume(voiceSFX, 200); + Voice_SetVolume(voiceSFX, 800); voiceSFX = Sample_Play(hashtable_get(samples, filename), 0, 0); MikMod_Update(); //force an update so that the voice is registered as playing!