summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/pcmbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 4ed2973dbb..8153118715 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -303,7 +303,7 @@ void pcmbuf_set_event_handler(void (*event_handler)(void))
303 303
304unsigned int pcmbuf_get_latency(void) 304unsigned int pcmbuf_get_latency(void)
305{ 305{
306 /* Be careful how this calculation is rearranted, it's easy to overflow */ 306 /* Be careful how this calculation is rearranged, it's easy to overflow */
307 size_t bytes = pcmbuf_unplayed_bytes + pcm_get_bytes_waiting(); 307 size_t bytes = pcmbuf_unplayed_bytes + pcm_get_bytes_waiting();
308 return bytes / 4 / (NATIVE_FREQUENCY/1000); 308 return bytes / 4 / (NATIVE_FREQUENCY/1000);
309} 309}