What is SLDataLocator_AndroidSimpleBufferQueue (Android 4.3)?

Which means "2" in the following:

SLDataLocator_AndroidSimpleBufferQueue loc_bq   =
{SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE, 2};

From what I read, this is the number of buffers.

Why 2? Why not only 1? And if 2 is better, why not 10 to make it even better?

thanks

+4
source share
1 answer

Why 2?

If you have 2 buffers, you can fill them with new data during the game. In addition, it so happened that until recently you should have had at least 2 buffers in the buffer queue if you want to be able to use the low-latency Android audio channel.

Why not only 1?

, , .

2 , 10, ?

( , ), , .

+6

All Articles