Here is the problem I came across:
SimpleAudioEngine::sharedEngine()->playEffect to play some sound when needed, the fps drops under 50 sometimes while playing sound.
But if I turn off the sound, the fps keeps stable at 54fps on my Android device. I wonder if there are any performances issues in SimpleAudioEngine?
- I doubt that maybe the other part of my codes effects the fps, so I create a new clean project. every time I touch the screen, I play sound once. The frame rate drops!
- I also set -DCOCOS2D_DEBUG=0.
- I checked the CocosDenshionTest, it has the same problem on my device.
Have you ever met this problem? Thanks in advance.
Attached is the wav file I used.
Sound.wav.zip (8.7 KB)