diff options
| author | Rob Purchase <shotofadds@rockbox.org> | 2009-09-17 20:49:34 +0000 |
|---|---|---|
| committer | Rob Purchase <shotofadds@rockbox.org> | 2009-09-17 20:49:34 +0000 |
| commit | 5bd3b443ffa2966e4f23f46496111378ac1cf292 (patch) | |
| tree | db1fe934e85afac4d5f6c2e0004e8825e9e47bed | |
| parent | 3ad6ee3fcd0481c37df8cf569dc8a8a5b3cdbf85 (diff) | |
| download | rockbox-5bd3b443ffa2966e4f23f46496111378ac1cf292.zip rockbox-5bd3b443ffa2966e4f23f46496111378ac1cf292.tar.gz rockbox-5bd3b443ffa2966e4f23f46496111378ac1cf292.tar.bz2 rockbox-5bd3b443ffa2966e4f23f46496111378ac1cf292.tar.xz | |
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.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index dcd3e24..1f585fc 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: { |