Is native AAC decoder available when using Android NDK?

I am looking for a way to decode AAC natively for PCM on Android. The source code for the decoder is located at https://android.googlesource.com/platform/external/opencore/+/master/codecs_v2/audio/aac/dec , but I'm not familiar with NDK at all.

1) There is no way to do this directly using the Android SDK, but is it possible to do this through the NDK?

2) I am particularly interested in a simple way to access the decoder from the SDK with a short "bridge" through the NDK. Is it possible?

3) Will such a solution work on all versions of Android (1.5-2.2)?

4) I think I could use http://code.google.com/p/aacplayer-android/ , but it looks like this implementation requires a processor quite intensively. Does anyone have experience with this?

+3
source share
2 answers

Not sure if the policy is here to answer really old questions, but what works well for me is to use OpenSL with NDK; it is built-in and in fact the NDK comes with an example of "native-audio" that demonstrates what you need.

+3
source

Source: https://habr.com/ru/post/1769088/


All Articles