diff options
Diffstat (limited to 'apps/iap.c')
-rw-r--r-- | apps/iap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/iap.c b/apps/iap.c index 8dfef9516f..1d351ab1ea 100644 --- a/apps/iap.c +++ b/apps/iap.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include "audio.h" | 36 | #include "audio.h" |
37 | #include "settings.h" | 37 | #include "settings.h" |
38 | #include "metadata.h" | 38 | #include "metadata.h" |
39 | #include "skin_engine/skin_engine.h" | 39 | #include "wps.h" |
40 | 40 | ||
41 | #include "action.h" | 41 | #include "action.h" |
42 | 42 | ||
@@ -191,7 +191,7 @@ void iap_periodic(void) | |||
191 | unsigned char data[] = {0x04, 0x00, 0x27, 0x04, 0x00, 0x00, 0x00, 0x00}; | 191 | unsigned char data[] = {0x04, 0x00, 0x27, 0x04, 0x00, 0x00, 0x00, 0x00}; |
192 | unsigned long time_elapsed = audio_current_track()->elapsed; | 192 | unsigned long time_elapsed = audio_current_track()->elapsed; |
193 | 193 | ||
194 | time_elapsed += wps_state.ff_rewind_count; | 194 | time_elapsed += wps_get_ff_rewind_count(); |
195 | 195 | ||
196 | data[3] = 0x04; // playing | 196 | data[3] = 0x04; // playing |
197 | 197 | ||
@@ -685,13 +685,13 @@ void iap_handlepkt(void) | |||
685 | /* Jump to track number in current playlist */ | 685 | /* Jump to track number in current playlist */ |
686 | case 0x0037: | 686 | case 0x0037: |
687 | { | 687 | { |
688 | int paused = (is_wps_fading() || (audio_status() & AUDIO_STATUS_PAUSE)); | ||
688 | long tracknum = (signed long)serbuf[4] << 24 | | 689 | long tracknum = (signed long)serbuf[4] << 24 | |
689 | (signed long)serbuf[5] << 16 | | 690 | (signed long)serbuf[5] << 16 | |
690 | (signed long)serbuf[6] << 8 | serbuf[7]; | 691 | (signed long)serbuf[6] << 8 | serbuf[7]; |
691 | if (!wps_state.paused) | 692 | audio_pause(); |
692 | audio_pause(); | ||
693 | audio_skip(tracknum - playlist_next(0)); | 693 | audio_skip(tracknum - playlist_next(0)); |
694 | if (!wps_state.paused) | 694 | if (!paused) |
695 | audio_resume(); | 695 | audio_resume(); |
696 | 696 | ||
697 | /* respond with cmd ok packet */ | 697 | /* respond with cmd ok packet */ |