Android Low latency Audio using SoundPool

2019-09-01 20:53发布

问题:

I want to play a simple short tone (150ms) with as low latency as possible. Reading around it seems that the simplest solution is to use SoundPool.

I've also read that in Android 4.1 support for OpenSL ES was introduced, which uses a lower latency audio output path. http://source.android.com/devices/latency_design.html

So my question is does SoundPool make use of this low latency audio path? Or is the only way to access this feature via OpenSL ES and the NDK?