[vlc-commits] opensles: increase number of buffers to the maximum
Rafaël Carré
git at videolan.org
Sat Dec 15 19:23:49 CET 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Dec 15 19:22:49 2012 +0100| [a40a943927df92302930cba792f1afa13680bb14] | committer: Rafaël Carré
opensles: increase number of buffers to the maximum
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a40a943927df92302930cba792f1afa13680bb14
---
modules/audio_output/opensles_android.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index a844901..3b32f7c 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -40,9 +40,6 @@
#include <SLES/OpenSLES.h>
#include <SLES/OpenSLES_Android.h>
-// Maximum number of buffers to enqueue.
-#define BUFF_QUEUE 42
-
#define Destroy(a) (*a)->Destroy(a);
#define SetPlayState(a, b) (*a)->SetPlayState(a, b)
#define RegisterCallback(a, b, c) (*a)->RegisterCallback(a, b, c)
@@ -362,7 +359,7 @@ static int Start( audio_output_t *p_aout, audio_sample_format_t *restrict fmt )
// configure audio source - this defines the number of samples you can enqueue.
SLDataLocator_AndroidSimpleBufferQueue loc_bufq = {
SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE,
- BUFF_QUEUE
+ 255 // Maximum number of buffers to enqueue.
};
SLDataFormat_PCM format_pcm;
More information about the vlc-commits
mailing list