質問

I use cocos2d-x 3.0 on Windows, but the game should be on Android and iOS.

I want to create coin collection sound. My player can collect for example 10 coins with 0.1 seconds delay. Now I want to play the same effect 10 times with the same delay, whereas my effect length is 1 second. SimpleAudioEngine does not play that. How I can achieve that?

In other words I want to play the same sound with multiple streams. Please help me.

役に立ちましたか?

解決

Size matters. If the size of .wav file is "enough" small, then it can play multiple times.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top