Playing an android NDK MP3 file using openSL from memory

I have an Android app where the data is packed using FileWrap. The fact is that I want to wrap mp3 data into an android file and play with this memory. I tested the nativeuudio example in the NDK, which shows how to play MP3s as an asset or file system file, but does not show how I can play MP3s embedded in memory.

Please, help. Thanks.

+4
source share
1 answer

I do not think this is possible ... yet.

AFAIK android opensl only supports decoding and playing MP3s from a stream ...

ndk (r9b), - opensl , , .

, , : https://groups.google.com/forum/#!searchin/android-ndk/opensl|sort:date/android-ndk/cMHlkyQkFU0/vMkyO2201yYJ

MP3 "assets" AAssetManager .

0

All Articles