I am developing game in android using cocos2d-x plateform. I include game .so file in android code. Game working fine in marshmallow and below version devices but when i run this app in android 7 nougat getting unknown error.
E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libstlport.so" not found
I am sure that problem is in .so file. in .so file following line creating problem. sounds not working in android 7 Nougat.
CocosDenshion::SimpleAudioEngine::getInstance()->playEffect(writable);
is it any alternate method to play sound in cocos2d-x plateform.
For Sound Effects, .mp3
only supports on iOS, According to cocos2d-x wiki :
Sound Effects
| Platform | supported sound effects formats |
|-----------------|:-----------------------------------:|
| Android Supports| .ogg , .wav format. |
| iOS | .mp3, .wav, .caf |
| Windows Desktop | .mid and .wav only |
May be wiki is outdated so some OS of Android start supporting .mp3
file for Sound Effect. But from your test still android 7 nougat version not supporting .mp3
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With