Home > other >  About Cocos2dx2 SimpleAudioEngine problems in 2.6
About Cocos2dx2 SimpleAudioEngine problems in 2.6

Time:09-21

As before, using the 2.2.6 version, recently a lot of players complained android7.0 machine has many problems, including the game back, installation fast and pay back, the installation is not on, then, over the years I make hand began to check these problems, find out a one plus mobile phone even computer began to run, the results I found a new problem again, just enter the game screen, use logcat looked
 12-22 14:57:36. 927 4847 4864 E WVMExtractor: Failed to open libwvm. So: dlopen Failed: library "libwvm. So" not found 

And then the Internet baidu, Google, seemed to be no effective solution, but to see a lot of posts are said when play audio or video to the problem, search for a long time can't confirm what is going on, so I wrapped himself audio_engine and Cocos SimpleAudioEngine these two classes of method calls, all commented out, and ran a package, the good, there is no black screen and entered the game, so want to ask the great spirit in the BBS, see if SimpleAudioEngine this class for adaptation android 7.0 is there any modification or optimization,

CodePudding user response:

Extract your old bag before a, see if there are any libwvm. So documents, if any, may be you don't have one plus phone libwvm. So just,
Usually so arm, mip, x86 several versions, different phones will have different CPU libwvm. So,

CodePudding user response:

reference 1st floor lovesmiles response:
extract your old bag before a, see if there are any libwvm. So documents, if any, may be you don't have one plus phone libwvm. So just,
Usually so arm, mip, x86 several versions, different phones will have different CPU libwvm. So,

Is that our game has always been not to add the library, but below the Android7.0 phone all have no problem, only 7.0 will encounter this problem, I carefully looked at the following Cocos2dxSound yesterday. Java, then played the following log, is found in playEffect method inside the enclosing mSemaphore. Acquire () out the problem, and then I checked the, find someone to ask this question on zhihu, interested can look at, https://www.zhihu.com/question/24843109, and then I according to the comments given solution test, in Cocos2dx3. X seems to have optimized the problem, I modified the Cocos2dxSound contrast. Java file, black screen problem solved, but it can't open the games of the first sound play, and 6.0 machine seems to be also not line, one for a deaf mute, and, until now I have not yet fully solved the problem,

CodePudding user response:

The deaf were you put into the dumb

CodePudding user response:

Suggest you switch to 3 x audio, no problem

CodePudding user response:

My project is 2 x, successfully replaced by 3 x audio module
  • Related