diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-22 21:54:34 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-22 21:54:34 +0000 |
commit | 7c8c0a6fb6d860b47d55924923191a0fd0ffc47a (patch) | |
tree | 76133d875288b22b3bf53a39b3d168f20fde7d8e /apps/pcmbuf.c | |
parent | 50ef82ab6889cdfe51ebefbbd3b9ad0a51c42daf (diff) | |
download | rockbox-7c8c0a6fb6d860b47d55924923191a0fd0ffc47a.tar.gz rockbox-7c8c0a6fb6d860b47d55924923191a0fd0ffc47a.zip |
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
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r-- | apps/pcmbuf.c | 2 |
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) | |||
208 | int latency; | 208 | int latency; |
209 | 209 | ||
210 | latency = (pcmbuf_unplayed_bytes + pcm_get_bytes_waiting()) | 210 | latency = (pcmbuf_unplayed_bytes + pcm_get_bytes_waiting()) |
211 | / 4 / (44100/1000); | 211 | * 1000 / 4 / 44100; |
212 | if (latency < 0) | 212 | if (latency < 0) |
213 | latency = 0; | 213 | latency = 0; |
214 | 214 | ||