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
This commit is contained in:
Rob Purchase 2009-09-17 20:49:34 +00:00
parent 3ad6ee3fcd
commit 5bd3b443ff

View file

@ -634,7 +634,17 @@ int wps_get_touchaction(struct wps_data *data)
wps_state.id3->elapsed = (vy * wps_state.id3->elapsed = (vy *
wps_state.id3->length) / r->height; 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); audio_ff_rewind(wps_state.id3->elapsed);
#if (CONFIG_CODEC != SWCODEC)
if (!wps_state.paused)
audio_resume();
#endif
break; break;
case WPS_TOUCHREGION_VOLUME: case WPS_TOUCHREGION_VOLUME:
{ {