summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/wps.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 5404d70638..0103ace53c 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -125,6 +125,17 @@ void pause_action(bool may_fade, bool updatewps)
125 fade(false, updatewps); 125 fade(false, updatewps);
126 else 126 else
127 audio_pause(); 127 audio_pause();
128
129 if (global_settings.pause_rewind) {
130 long newpos;
131
132#if (CONFIG_CODEC == SWCODEC)
133 audio_pre_ff_rewind();
134#endif
135 newpos = audio_current_track()->elapsed
136 - global_settings.pause_rewind * 1000;
137 audio_ff_rewind(newpos > 0 ? newpos : 0);
138 }
128} 139}
129 140
130void unpause_action(bool may_fade, bool updatewps) 141void unpause_action(bool may_fade, bool updatewps)