forked from len0rd/rockbox
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
This commit is contained in:
parent
50ef82ab68
commit
7c8c0a6fb6
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ unsigned int pcmbuf_get_latency(void)
|
||||||
int latency;
|
int latency;
|
||||||
|
|
||||||
latency = (pcmbuf_unplayed_bytes + pcm_get_bytes_waiting())
|
latency = (pcmbuf_unplayed_bytes + pcm_get_bytes_waiting())
|
||||||
/ 4 / (44100/1000);
|
* 1000 / 4 / 44100;
|
||||||
if (latency < 0)
|
if (latency < 0)
|
||||||
latency = 0;
|
latency = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue