summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
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