Android built-in sound library that can really change the pitch?

I am confused as to how to configure the step on Android. I tried to change the native sound sample from the NDK that uses OpenSL ES, but I get SL_RESULT_FEATURE_UNSUPPORTED for almost everything related to the step, requesting an interface. Interfaces: SL_IID_PITCH, SL_IID_RATEPITCH, SL_3DDOPPLER

// create audio player
const SLInterfaceID ids[3] = { SL_IID_BUFFERQUEUE, SL_IID_PITCH, SL_IID_VOLUME};
const SLboolean req[3] = {SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE};
result = (*engineEngine)->CreateAudioPlayer(engineEngine, &bqPlayerObject, &audioSrc, &audioSnk,
        3, ids, req);
assert(SL_RESULT_SUCCESS == result);

the result is always SL_RESULT_UNSUPPORTED

My goal is android 19. I tried many others, but to no avail. Am I doing something wrong? Is there an alternative that does not require the use of Java?

Thanks!

+4
source share
2 answers

Android OpenSL, . , ( ) NDK, - , NDK.

, , PCM.

+4

Synthesis ToolKit (STK) , . https://ccrma.stanford.edu/software/stk/

, . , Android , .

0

All Articles