]> git.sesse.net Git - vlc/commit
audiotrack: refactor Write
authorThomas Guillem <thomas@gllm.fr>
Wed, 11 Mar 2015 14:00:48 +0000 (15:00 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 11 Mar 2015 14:12:44 +0000 (15:12 +0100)
commit78420811d72fe4a07311171674e50cd650fe60a5
tree2515208572924dab0cdd38def5538de975224e69
parent3bf7858739fcacda95cf5419190eae3c68371912
audiotrack: refactor Write

Don't change p_buffer internal values, but use a local offset to know the
position.

The main advantage is that we can use this offset with the Android write method
in order to avoid a Java copy when you call Write several time for the same
p_buffer.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/audio_output/audiotrack.c