From 857db456affc0b65e4fa3db1020117f547bcade5 Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Thu, 6 Apr 2006 04:07:06 +0000 Subject: 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 --- apps/gui/gwps-common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui') 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 -- cgit v1.2.3