ndk-build how to build opencore-amr

1k views Asked by At

I want to use opencore-amr native code in android jni.

but i don't know how to write Android.mk file.

can anyone tell me how?

I want to call the following function in opencore-amr lib:

AMREncodeInit

AMREncode

AMREncodeExit

I download opencore-amr from http://sourceforge.net/projects/opencore-amr/files/opencore-amr/

2

There are 2 answers

0
kvh On BEST ANSWER

After a period of time, I figure it out myself: See this project in github:

opencore-amr-Android

I make a wrapper and build it with NDK

0
Juha On

See make amr and make vo-amrwbenc in https://github.com/juha-h/libbaresip-android Makefile.