[vlc-commits] opensles: use a ring buffer for latency measurement
Rafaël Carré
git at videolan.org
Thu Dec 20 22:05:21 CET 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Dec 20 21:56:40 2012 +0100| [76e6ca8e87ee16f958584fe58e30b8f3732dc9b3] | committer: Rafaël Carré
opensles: use a ring buffer for latency measurement
Now audio codec frame size will not affect latency precision, at the
small cost of one memcpy per frame.
With the maximum number of OpenSLES buffers (255), we can have a precision
of 4ms with a buffer size of ~1 second.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=76e6ca8e87ee16f958584fe58e30b8f3732dc9b3
---
modules/audio_output/opensles_android.c | 222 ++++++++++++++++++-------------
1 file changed, 127 insertions(+), 95 deletions(-)
Diff: http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=76e6ca8e87ee16f958584fe58e30b8f3732dc9b3
More information about the vlc-commits
mailing list