[vlc-commits] audiotrack: add a circular buffer of 2seconds

Thomas Guillem git at videolan.org
Thu Jul 23 10:56:16 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jul 13 14:44:07 2015 +0200| [0a7f77bedcba6c4a963e26bd718e1e8c6b30cd85] | committer: Thomas Guillem

audiotrack: add a circular buffer of 2seconds

Depending on device and audio format, AudioTrack can't hold an audio buffer big
enough.

This commit adds a circular buffer and a thread that will play the data to
AudioTrack coming from this circular buffer. This commit also decrease the
AudioTrack internal buffer size.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a7f77bedcba6c4a963e26bd718e1e8c6b30cd85
---

 modules/audio_output/audiotrack.c |  628 +++++++++++++++++++++++--------------
 1 file changed, 399 insertions(+), 229 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=0a7f77bedcba6c4a963e26bd718e1e8c6b30cd85


More information about the vlc-commits mailing list