summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-04-06 04:07:06 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-04-06 04:07:06 +0000
commit857db456affc0b65e4fa3db1020117f547bcade5 (patch)
treef649f24e7b141cc3ed395def3a156a029799483d /apps/gui
parent295fdf294c5f7db3bfd1583b8f271ccfcb3063f6 (diff)
Fix seeking on swcodec, but probably break some cases of skipping. Another important rework here, buffer management is serialized along with most other operations on the audio thread. This has some minor performance issues on ipod that can lead to audio skips during buffer fill as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9529 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 231aa28162..41e20ecadd 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -2347,7 +2347,11 @@ bool ffwd_rew(int button)
wps_state.id3 && wps_state.id3->length )
{
if (!wps_state.paused)
+#if (CONFIG_CODEC == SWCODEC)
+ audio_pre_ff_rewind();
+#else
audio_pause();
+#endif
#if CONFIG_KEYPAD == PLAYER_PAD
FOR_NB_SCREENS(i)
gui_wps[i].display->stop_scroll();
@@ -2399,8 +2403,10 @@ bool ffwd_rew(int button)
ff_rewind_count = 0;
wps_state.ff_rewind = false;
status_set_ffmode(0);
+#if (CONFIG_CODEC != SWCODEC)
if (!wps_state.paused)
audio_resume();
+#endif
#ifdef HAVE_LCD_CHARCELLS
gui_wps_display();
#endif