Instead of [loading raw.db into memory](https://github.com/aleksas/laba-diena-tts/blob/336c15c71b4b81ce9c271d4c6c0eebf2edc03113/native-modules/RateChange/VeiksmaiSuFailais.cpp#L83) use Android OpenSL ES to load mp3 and get PCM buffer. See [native-audio](https://github.com/googlesamples/android-ndk/tree/master/native-audio) example and following [thread](https://groups.google.com/forum/#!topic/Android-ndk/JPKFcJ1p9vw).
Instead of loading raw.db into memory use Android OpenSL ES to load mp3 and get PCM buffer. See native-audio example and following thread.