mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
3ad6ee3fcd
commit
5bd3b443ff
1 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue