add polish to sound stuff

This commit is contained in:
ariahiro64 2021-09-29 01:40:29 -04:00
parent 9505e3f58f
commit 465064c784
2 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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!