summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2009-09-17 20:49:34 +0000
committerRob Purchase <shotofadds@rockbox.org>2009-09-17 20:49:34 +0000
commit5bd3b443ffa2966e4f23f46496111378ac1cf292 (patch)
treedb1fe934e85afac4d5f6c2e0004e8825e9e47bed
parent3ad6ee3fcd0481c37df8cf569dc8a8a5b3cdbf85 (diff)
downloadrockbox-5bd3b443ffa2966e4f23f46496111378ac1cf292.tar.gz
rockbox-5bd3b443ffa2966e4f23f46496111378ac1cf292.zip
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
-rw-r--r--apps/gui/wps.c10
1 files changed, 10 insertions, 0 deletions
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)
634 wps_state.id3->elapsed = (vy * 634 wps_state.id3->elapsed = (vy *
635 wps_state.id3->length) / r->height; 635 wps_state.id3->length) / r->height;
636 636
637 if (!wps_state.paused)
638#if (CONFIG_CODEC == SWCODEC)
639 audio_pre_ff_rewind();
640#else
641 audio_pause();
642#endif
637 audio_ff_rewind(wps_state.id3->elapsed); 643 audio_ff_rewind(wps_state.id3->elapsed);
644#if (CONFIG_CODEC != SWCODEC)
645 if (!wps_state.paused)
646 audio_resume();
647#endif
638 break; 648 break;
639 case WPS_TOUCHREGION_VOLUME: 649 case WPS_TOUCHREGION_VOLUME:
640 { 650 {