diff options
Diffstat (limited to 'apps/wps.c')
-rw-r--r-- | apps/wps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/wps.c b/apps/wps.c index 1071bcc035..81249e914e 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -674,8 +674,8 @@ static void fade(bool fade_in) | |||
674 | /* zero out the sound */ | 674 | /* zero out the sound */ |
675 | mpeg_sound_set(SOUND_VOLUME, current_volume); | 675 | mpeg_sound_set(SOUND_VOLUME, current_volume); |
676 | 676 | ||
677 | sleep(HZ/10); /* let mpeg thread run */ | ||
677 | mpeg_resume(); | 678 | mpeg_resume(); |
678 | sleep(1); /* let mpeg thread run */ | ||
679 | 679 | ||
680 | while (current_volume < global_settings.volume) { | 680 | while (current_volume < global_settings.volume) { |
681 | current_volume += 2; | 681 | current_volume += 2; |
@@ -694,7 +694,7 @@ static void fade(bool fade_in) | |||
694 | mpeg_sound_set(SOUND_VOLUME, current_volume); | 694 | mpeg_sound_set(SOUND_VOLUME, current_volume); |
695 | } | 695 | } |
696 | mpeg_pause(); | 696 | mpeg_pause(); |
697 | sleep(1); /* let mpeg thread run */ | 697 | sleep(HZ/10); /* let mpeg thread run */ |
698 | 698 | ||
699 | /* reset volume to what it was before the fade */ | 699 | /* reset volume to what it was before the fade */ |
700 | mpeg_sound_set(SOUND_VOLUME, global_settings.volume); | 700 | mpeg_sound_set(SOUND_VOLUME, global_settings.volume); |