[armeabi] StaticLibrary : libcocos2d.a
[armeabi] StaticLibrary : libcocostudio.a
[armeabi] StaticLibrary : libcocosbuilder.a
[armeabi] StaticLibrary : libcocos3d.a
[armeabi] StaticLibrary : libspine.a
[armeabi] StaticLibrary : libui.a
[armeabi] StaticLibrary : libcocosdenshion.a
[armeabi] StaticLibrary : flatbuffers.a
[armeabi] StaticLibrary : libextension.a
[armeabi] Compile++ thumb: audioengine_static <= AudioDecoder.cpp
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp: In constructor ‘cocos2d::experimental::AudioDecoder::AudioDecoder(SLEngineItf, const string&, int, int, const FdGetterCallback&)’:
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp:108:73: error: ‘malloc’ was not declared in this scope
_pcmData = (char*) malloc(NB_BUFFERS_IN_QUEUE * BUFFER_SIZE_IN_BYTES);
^
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp: In destructor ‘virtual cocos2d::experimental::AudioDecoder::~AudioDecoder()’:
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp:126:18: error: ‘free’ was not declared in this scope
free(_pcmData);
^
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp: In member function ‘bool cocos2d::experimental::AudioDecoder::decodeToPcm()’:
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp:405:52: error: ‘malloc’ was not declared in this scope
keyInfo = (SLMetadataInfo *) malloc(keySize);
^
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp:434:25: error: ‘free’ was not declared in this scope
free(keyInfo);
^
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp: In member function ‘bool cocos2d::experimental::AudioDecoder::resample()’:
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp:504:42: error: ‘malloc’ was not declared in this scope
void *outputVAddr = malloc(outputSize);
^
C:/Users/hasee/Desktop/test/Hello/proj.android-studio/…/cocos2d/cocos/audio/android/AudioDecoder.cpp:594:17: error: ‘free’ was not declared in this scope
free(convert);
^
make: *** [obj/local/armeabi/objs-debug/audioengine_static/AudioDecoder.o] Error 1
make: *** Waiting for unfinished jobs…
make: Leaving directory `C:/Users/hasee/Desktop/test/Hello/proj.android-studio/app’
执行命令出错,返回值:2。
这是怎么回事>?