At present, I’m currently using AudioTrack that is passing on audio data from the native layer and playing it back to.
It appears that I could use OpenSL ES in the native layer, instead in place of AudioTrack using Java. What are the supposed benefits that OpenSL ES has over to AudioTrack?
- API for Low-Level Audio on Android
- Device independent on Android phones
- Good for gaming
- Only supported on 2.3+ OS
You will also like to read ‘HP Flyer Red 15.6″ 15-f272wm Laptop with Intel Pentium N3540 Processor [Review].’
- API at High Level
- It works with Java layer. Native code must call Javalayer in order to listen audio.
You will also like to read ‘What is Android wearable storage?’
We hope that you got the answer for ‘What should be reasons to use OpenSL ES instead of AudioTrack in Android?’. If you have any other queries, please comment below. We would love to help you.