What I want to do:
I found the C library that calculates the audio stream pitch and wants to use it in Android.
I thought, instead of porting it, I could also use it using the NDK, right?
How it works? Of course I have to install NDK, and then? Can I call the functions of this C library, as usual, in Android?
The library in C that I want to import is:
#include "second_c_file.h" #include <math.h> #include <stdlib.h> #include <string.h> #ifndef max #define max(x, y) ((x) > (y)) ? (x) : (y) #endif #ifndef min #define min(x, y) ((x) < (y)) ? (x) : (y) #endif int _power2p(int value) { ... } typedef struct _minmax { int index; struct _minmax *next; } minmax; double _test_calculate(double * var1, int var2, int var3) { ... }
The file "second_c_file.h" is another file that I need to import, obviously.
Thanks for your help!
source share