diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c index 932bf115f9..0331405846 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include "pcm_record.h" | 49 | #include "pcm_record.h" |
50 | #include "buffer.h" | 50 | #include "buffer.h" |
51 | #include "dsp.h" | 51 | #include "dsp.h" |
52 | #include "abrepeat.h" | ||
52 | #ifdef HAVE_LCD_BITMAP | 53 | #ifdef HAVE_LCD_BITMAP |
53 | #include "icons.h" | 54 | #include "icons.h" |
54 | #include "peakmeter.h" | 55 | #include "peakmeter.h" |
@@ -418,6 +419,9 @@ void codec_set_elapsed_callback(unsigned int value) | |||
418 | if (ci.stop_codec || current_codec == CODEC_IDX_VOICE) | 419 | if (ci.stop_codec || current_codec == CODEC_IDX_VOICE) |
419 | return ; | 420 | return ; |
420 | 421 | ||
422 | #ifdef AB_REPEAT_ENABLE | ||
423 | ab_position_report(value); | ||
424 | #endif | ||
421 | latency = pcmbuf_get_latency(); | 425 | latency = pcmbuf_get_latency(); |
422 | 426 | ||
423 | if (value < latency) { | 427 | if (value < latency) { |
@@ -1663,7 +1667,10 @@ bool codec_request_next_track_callback(void) | |||
1663 | the core has been requested the codec to be terminated. */ | 1667 | the core has been requested the codec to be terminated. */ |
1664 | return !ci_voice.stop_codec && queue_empty(&voice_codec_queue); | 1668 | return !ci_voice.stop_codec && queue_empty(&voice_codec_queue); |
1665 | } | 1669 | } |
1666 | 1670 | #ifdef AB_REPEAT_ENABLE | |
1671 | ab_end_of_track_report(); | ||
1672 | #endif | ||
1673 | |||
1667 | pcmbuf_set_position_callback(pcmbuf_position_callback); | 1674 | pcmbuf_set_position_callback(pcmbuf_position_callback); |
1668 | 1675 | ||
1669 | if (ci.stop_codec || !playing) | 1676 | if (ci.stop_codec || !playing) |