diff options
Diffstat (limited to 'apps/codecs/adx.c')
-rw-r--r-- | apps/codecs/adx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c index e75e7dca1e..8144d5f468 100644 --- a/apps/codecs/adx.c +++ b/apps/codecs/adx.c | |||
@@ -209,7 +209,7 @@ enum codec_status codec_run(void) | |||
209 | 209 | ||
210 | /* get in position */ | 210 | /* get in position */ |
211 | ci->seek_buffer(bufoff); | 211 | ci->seek_buffer(bufoff); |
212 | 212 | ci->set_elapsed(0); | |
213 | 213 | ||
214 | /* setup pcm buffer format */ | 214 | /* setup pcm buffer format */ |
215 | ci->configure(DSP_SWITCH_FREQUENCY, ci->id3->frequency); | 215 | ci->configure(DSP_SWITCH_FREQUENCY, ci->id3->frequency); |
@@ -276,6 +276,11 @@ enum codec_status codec_run(void) | |||
276 | loop_count++; | 276 | loop_count++; |
277 | } | 277 | } |
278 | ci->seek_buffer(bufoff); | 278 | ci->seek_buffer(bufoff); |
279 | |||
280 | ci->set_elapsed( | ||
281 | ((end_adr-start_adr)*loop_count + bufoff-chanstart)* | ||
282 | 1000LL/avgbytespersec); | ||
283 | |||
279 | ci->seek_complete(); | 284 | ci->seek_complete(); |
280 | } | 285 | } |
281 | 286 | ||