Size matters. If the size of .wav file is "enough" small, then it can play multiple times.
Play same sound effect multiple times when others are not finished yet
-
19-07-2023 - |
Question
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.
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow