我需要一些帮助OpenSL ES -我想改变mp3歌曲的音高。我使用的代码在这里:安卓:如何使用OpenSL ES改变音乐回放率,但在本例中有注释。如果我取消评论的话-那就没用了。在执行代码之后
result = (*uriPlayerObject)->GetInterface(uriPlayerObject, SL_IID_PITCH,
&uriPlaybackPitch);
assert(SL_RESULT_SUCCESS == result);uriPlaybackPitch ==空
LogCat是:
OSLESMediaPlayer(7173): create engine
OSLESMediaPlayer(7173): realize the engine
OSLESMediaPlayer(7173): get the engine interface
OSLESMediaPlayer(7173): create output mix
libOpenSLES(7173): class OutputMix interface 0 requested but unavailable MPH=33
OSLESMediaPlayer(7173): realize the output mix
libOpenSLES(7173): Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)
libOpenSLES(7173): Leaving PlaybackRate::SetPropertyConstraints (SL_RESULT_FEATURE_UNSUPPORTED)
/OSLESMediaPlayer(7173): Feature Unsupported
libc(7173): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)发布于 2013-09-28 06:08:16
很晚了,也许您已经解决了它,但是这个接口不受支持。安卓的OpenSL ES并不是一个完整的实现。您可以在这里找到受支持的接口:http://mobilepearls.com/labs/native-android-api/ndk/docs/opensles/
发布于 2018-08-10 21:36:36
NDK文档概述了Android上支持的接口。
https://stackoverflow.com/questions/18359494
复制相似问题