summaryrefslogtreecommitdiffstats
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorJeffrey Goode <jeffg7@gmail.com>2009-08-12 19:00:31 +0000
committerJeffrey Goode <jeffg7@gmail.com>2009-08-12 19:00:31 +0000
commite3f36a1f473d2f9503c4e6adfc82de6db8ea1a20 (patch)
tree58a7caa3c3c63cc702eb2d5b4a3e0b82fae2f0c2 /apps/pcmbuf.c
parent24bd4923fda2b1511ac1fe96338e50165fadf810 (diff)
downloadrockbox-e3f36a1f473d2f9503c4e6adfc82de6db8ea1a20.tar.gz
rockbox-e3f36a1f473d2f9503c4e6adfc82de6db8ea1a20.tar.bz2
rockbox-e3f36a1f473d2f9503c4e6adfc82de6db8ea1a20.zip
FS#10446: Bug defense in dsp.c, minor tweaks and comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22282 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index e23f6d0fb6..319e3e8044 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -448,7 +448,7 @@ static size_t pcmbuf_get_next_required_pcmbuf_size(void)
/* Buffer has to be at least 2s long. */
seconds += 2;
#endif
- logf("pcmbuf len: %ld", seconds);
+ logf("pcmbuf len: %ld", (long)seconds);
return seconds * (NATIVE_FREQUENCY*4); /* 2 channels + 2 bytes/sample */
}
@@ -1166,6 +1166,8 @@ bool pcmbuf_is_crossfade_enabled(void)
return crossfade_enabled;
}
+/** PLAY LAST REMAINING SAMPLES AT END OF PLAYBACK
+ * Commit any remaining samples in the PCM buffer for playback. */
void pcmbuf_play_remainder(void)
{
if (audiobuffer_fillpos)