opensl
Tutorials for OpenSL ES for Android
There’s an example app that comes with the NDK called NativeAudio. It has examples of nearly anything you would ever want to implement: effects, streaming, synthesis, etc. If you look at its code, you’ll get a good head start.
Low-latency audio playback on Android
For lowest latency on Android as of version 4.2.2, you should do the following, ordered from least to most obvious: Pick a device that supports FEATURE_AUDIO_PRO if possible, or FEATURE_AUDIO_LOW_LATENCY if not. (“Low latency” is 50ms one way; pro is <20ms round trip.) Use OpenSL. The Dalvik GC has a low amortized cost, but when … Read more