summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-08-22 21:54:34 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-08-22 21:54:34 +0000
commit7c8c0a6fb6d860b47d55924923191a0fd0ffc47a (patch)
tree76133d875288b22b3bf53a39b3d168f20fde7d8e
parent50ef82ab6889cdfe51ebefbbd3b9ad0a51c42daf (diff)
Fixed a rounding error in the PCM buffer latency calculation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7386 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/pcmbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 5f78901a56..d0bbeb0265 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -208,7 +208,7 @@ unsigned int pcmbuf_get_latency(void)
int latency;
latency = (pcmbuf_unplayed_bytes + pcm_get_bytes_waiting())
- / 4 / (44100/1000);
+ * 1000 / 4 / 44100;
if (latency < 0)
latency = 0;