mirror of
https://github.com/parasyte/alt64
synced 2024-11-15 21:55:03 -05:00
add polish to sound stuff
This commit is contained in:
parent
9505e3f58f
commit
465064c784
@ -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);
|
||||
|
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user