diff options
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 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 | ||
304 | unsigned int pcmbuf_get_latency(void) | 304 | unsigned 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 | } |