Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top