문제

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