summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-11-16 04:42:34 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-11-16 04:42:34 +0000
commitba9280d5f417498223852811d7b8191845e3426d (patch)
tree05a7ca21a934c3609ac6c03a7ce37733b94b046c /apps/playback.c
parent3114f2c6db0d37f8efdf8c319d11b31d7bfb89c1 (diff)
pcmbuf cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23649 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/playback.c b/apps/playback.c
index 57aca136a1..a9d419b13f 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -228,11 +228,9 @@ static void audio_stop_playback(void);
"elapsed" value of the previous (to the codec, but current to the
user/PCM/WPS) track, so that the progressbar reaches the end.
During that transition, the WPS will display othertrack_id3. */
-void audio_pcmbuf_position_callback(size_t size)
+void audio_pcmbuf_position_callback(unsigned int time)
{
- /* This is called from an ISR, so be quick */
- unsigned int time = size * 1000 / 4 / NATIVE_FREQUENCY +
- othertrack_id3->elapsed;
+ time += othertrack_id3->elapsed;
if (time >= othertrack_id3->length)
{