mirror of https://github.com/axmolengine/axmol.git
CocosDenshion: fixed wrong assertion in android OpenSL engine
Playback rate interface cannot be initialized for some players in android 4.x, it's not cocos2d bug.
This commit is contained in:
parent
52a987b84e
commit
3d3a628fb5
|
@ -311,9 +311,8 @@ bool createAudioPlayerBySource(AudioPlayer* player)
|
|||
result = (*(player->fdPlayerObject))->GetInterface(player->fdPlayerObject, getInterfaceID("SL_IID_SEEK"), &(player->fdPlayerSeek));
|
||||
assert(SL_RESULT_SUCCESS == result);
|
||||
|
||||
// get the playback rate interface
|
||||
result = (*(player->fdPlayerObject))->GetInterface(player->fdPlayerObject, getInterfaceID("SL_IID_PLAYBACKRATE"), &(player->fdPlaybackRate));
|
||||
assert(SL_RESULT_SUCCESS == result);
|
||||
// get the playback rate interface, if available
|
||||
(*(player->fdPlayerObject))->GetInterface(player->fdPlayerObject, getInterfaceID("SL_IID_PLAYBACKRATE"), &(player->fdPlaybackRate));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue