1
我需要一些OpenSL ES的帮助 - 我想更改mp3歌曲的音高。我使用的代码在这里:Android : How to change Playback Rate of music using OpenSL ES但它在这个例子中被评论。如果我取消注释 - 它不起作用。 executint代码OpenSL ES更改音调
result = (*uriPlayerObject)->GetInterface(uriPlayerObject, SL_IID_PITCH,
&uriPlaybackPitch);
assert(SL_RESULT_SUCCESS == result);
uriPlaybackPitch == NULL之后
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)
链接似乎是脱机 – Kyle
http://mobilepearls.com/labs/native-android-api/ndk/docs/opensles/index.html – HerrLip