I have been developing a music editing Android app. I have written a considerable amount of code so far. However, due to audio latency issues encountered on the Android platform, I now realize that it is necessary to optimize my code using C/C++ (Android NDK) in order to manipulate audio files (Wav & MP3), and thus, hopefully, boost the app performance. Unfortunately, I wasn't able to find concise resources dealing with the topic.
Could anybody post code examples on how to decode wav/mp3 files and mix them using C++? Any resource would be greatly appreciated.