forked from len0rd/rockbox
Elapsed counter resets correctly when changing tracks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6771 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
12a0e221de
commit
cf18f96b99
2 changed files with 5 additions and 3 deletions
|
@ -367,8 +367,7 @@ unsigned int audiobuffer_get_latency(void)
|
|||
int latency;
|
||||
|
||||
/* This has to be done better. */
|
||||
latency = (PCMBUF_SIZE - audiobuffer_free - audiobuffer_fillpos
|
||||
- CHUNK_SIZE)/4 / (44100/1000);
|
||||
latency = (PCMBUF_SIZE - audiobuffer_free - CHUNK_SIZE)/4 / (44100/1000);
|
||||
if (latency < 0)
|
||||
latency = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue