在android-NDK中构建Native-audio示例会导致以下错误

时间:2012-10-30 12:04:57

标签: android android-ndk

原生音频的NDK构建会导致以下错误,是否有任何线索?

 jni/native-audio-jni.c:721: error: 'bqPlayerPlay' undeclared (first use in this function)
jni/native-audio-jni.c:722: error: 'bqPlayerBufferQueue' undeclared (first use in this function)
jni/native-audio-jni.c:723: error: 'bqPlayerEffectSend' undeclared (first use in this function)
jni/native-audio-jni.c:724: error: 'bqPlayerMuteSolo' undeclared (first use in this function)
jni/native-audio-jni.c:725: error: 'bqPlayerVolume' undeclared (first use in this function)
jni/native-audio-jni.c:729: error: 'fdPlayerObject' undeclared (first use in this function)
jni/native-audio-jni.c:732: error: 'fdPlayerPlay' undeclared (first use in this function)
jni/native-audio-jni.c:733: error: 'fdPlayerSeek' undeclared (first use in this function)
jni/native-audio-jni.c:734: error: 'fdPlayerMuteSolo' undeclared (first use in this function)
jni/native-audio-jni.c:735: error: 'fdPlayerVolume' undeclared (first use in this function)
jni/native-audio-jni.c:739: error: 'uriPlayerObject' undeclared (first use in this function)
jni/native-audio-jni.c:742: error: 'uriPlayerPlay' undeclared (first use in this function)
jni/native-audio-jni.c:743: error: 'uriPlayerSeek' undeclared (first use in this function)
jni/native-audio-jni.c:744: error: 'uriPlayerMuteSolo' undeclared (first use in this function)
jni/native-audio-jni.c:745: error: 'uriPlayerVolume' undeclared (first use in this function)
jni/native-audio-jni.c:749: error: 'recorderObject' undeclared (first use in this function)
jni/native-audio-jni.c:752: error: 'recorderRecord' undeclared (first use in this function)
jni/native-audio-jni.c:753: error: 'recorderBufferQueue' undeclared (first use in this function)
jni/native-audio-jni.c:757: error: 'outputMixObject' undeclared (first use in this function)
jni/native-audio-jni.c:760: error: 'outputMixEnvironmentalReverb' undeclared (first use in this function)
jni/native-audio-jni.c:764: error: 'engineObject' undeclared (first use in this function)
jni/native-audio-jni.c:767: error: 'engineEngine' undeclared (first use in this function)

谢谢

1 个答案:

答案 0 :(得分:1)

如果您是从命令行构建的,请尝试

ndk-build TARGET_PLATFORM = android-9