[Android] according to the docs (AudioTrack.h), flush won' t do anything unless audiotrack is stopped
Sébastien Toque
git at videolan.org
Mon Dec 10 20:55:19 CET 2012
vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Mon Dec 10 20:54:42 2012 +0100| [c0a33d97b7c9b249ee47f56d0a439ed0980aeacc] | committer: Sébastien Toque
according to the docs (AudioTrack.h), flush won't do anything unless audiotrack is stopped
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c0a33d97b7c9b249ee47f56d0a439ed0980aeacc
---
patches/0003-Audiotrack-Implement-Flush.patch | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/patches/0003-Audiotrack-Implement-Flush.patch b/patches/0003-Audiotrack-Implement-Flush.patch
index c6291ca..22bca90 100644
--- a/patches/0003-Audiotrack-Implement-Flush.patch
+++ b/patches/0003-Audiotrack-Implement-Flush.patch
@@ -27,7 +27,7 @@ index bea55ff..9247aa4 100644
p_sys->at_start(p_sys->AudioTrack);
-@@ -321,6 +323,14 @@ static void Pause(audio_output_t *p_aout, bool pause, mtime_t date)
+@@ -321,6 +323,16 @@ static void Pause(audio_output_t *p_aout, bool pause, mtime_t date)
}
}
@@ -36,7 +36,9 @@ index bea55ff..9247aa4 100644
+ VLC_UNUSED(wait); /* FIXME implement drain */
+ aout_sys_t *p_sys = p_aout->sys;
+
++ p_sys->at_stop(p_sys->AudioTrack);
+ p_sys->at_flush(p_sys->AudioTrack);
++ p_sys->at_start(p_sys->AudioTrack);
+}
+
static int Open(vlc_object_t *obj)
More information about the Android
mailing list