[vlc-devel] [PATCH] android: Change the buffer length for opensles

Dominique Martinet asmadeus at codewreck.org
Tue Feb 28 10:53:08 CET 2012


This fixes all playback issues I had on a few samples,
but it really needs a way to choose a proper number at runtime.
---

(that means technically choosing something, feeding it to opensles,
and mallocing the buffer array/switching to a list in Open().
It's not hard to do, but I have no idea what settings are to be
accounted for to pick a sane length.
If you've got more samples that don't play, I'm willing to look
into proper rules, but I can't just pull it of my hat)

 modules/audio_output/opensles_android.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index 906b6bb..167268b 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -40,7 +40,7 @@
 #include <SLES/OpenSLES_Android.h>
 
 // Maximum number of buffers to enqueue.
-#define BUFF_QUEUE  42
+#define BUFF_QUEUE  128
 
 /*****************************************************************************
  * aout_sys_t: audio output method descriptor
-- 
1.7.3.2




More information about the vlc-devel mailing list