diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2003-02-17 08:54:10 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2003-02-17 08:54:10 +0000 |
| commit | 20032a98f00ba108c6adfa20deb2c2e14e861390 (patch) | |
| tree | 0249b0d86362e436f4606200612fdf7f7bcc65d0 /apps | |
| parent | 0f7ff15d86d6734858c1d93becda73efb73c566c (diff) | |
| download | rockbox-20032a98f00ba108c6adfa20deb2c2e14e861390.zip rockbox-20032a98f00ba108c6adfa20deb2c2e14e861390.tar.gz rockbox-20032a98f00ba108c6adfa20deb2c2e14e861390.tar.bz2 rockbox-20032a98f00ba108c6adfa20deb2c2e14e861390.tar.xz | |
Give mpeg thread more time to run
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3278 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/wps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -674,8 +674,8 @@ static void fade(bool fade_in) /* zero out the sound */ mpeg_sound_set(SOUND_VOLUME, current_volume); + sleep(HZ/10); /* let mpeg thread run */ mpeg_resume(); - sleep(1); /* let mpeg thread run */ while (current_volume < global_settings.volume) { current_volume += 2; @@ -694,7 +694,7 @@ static void fade(bool fade_in) mpeg_sound_set(SOUND_VOLUME, current_volume); } mpeg_pause(); - sleep(1); /* let mpeg thread run */ + sleep(HZ/10); /* let mpeg thread run */ /* reset volume to what it was before the fade */ mpeg_sound_set(SOUND_VOLUME, global_settings.volume); |