summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/wps.c')
-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 {