Search code examples
androidandroid-ndkopensl

NDK OpenSL ES looping sound with a buffer queue


I'm using SLDataLocator_AndroidSimpleBufferQueue for all audio files. It works good, but... It doesnt support seek and loop.

OpenSL can't require SL_IID_SEEK with a buffer queue data source

How can i use looping for files? Cant use streaming - low latency.


Solution

  • As it turned out, this is not possible with SLDataLocator_AndroidSimpleBufferQueue. Had to use SLDataLocator_AndroidFD...