From 5bd3b443ffa2966e4f23f46496111378ac1cf292 Mon Sep 17 00:00:00 2001 From: Rob Purchase Date: Thu, 17 Sep 2009 20:49:34 +0000 Subject: Fix delay when seeking using the touchscreen by adding a pause/unpause. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22720 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/wps.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/gui/wps.c b/apps/gui/wps.c index dcd3e2480d..1f585fcbff 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -634,7 +634,17 @@ int wps_get_touchaction(struct wps_data *data) wps_state.id3->elapsed = (vy * wps_state.id3->length) / r->height; + if (!wps_state.paused) +#if (CONFIG_CODEC == SWCODEC) + audio_pre_ff_rewind(); +#else + audio_pause(); +#endif audio_ff_rewind(wps_state.id3->elapsed); +#if (CONFIG_CODEC != SWCODEC) + if (!wps_state.paused) + audio_resume(); +#endif break; case WPS_TOUCHREGION_VOLUME: { -- cgit v1.2.3