In the game I’m working on, the player collects coins as they run. Lots of coins. Each coin should, of course, play some sort of sound when picked up. Here are my trials and problems:
- Play sound at a random free channel ( using audio.findFreeChannel() and without ): Amazing Stutter!
- Play sound at one channel: Not nice, cause channel has to wait for the previous sound to stop.
- Play sound at one channel, WITH stopping previous play: Stutters
- Reserve 12 channels (20-32) for the sound and play next free channel in turn: Amazing Stutter!
- Don’t play sound
works ^^
I’m currently testing with one sound. Wave, PCM, 44100, and config.lua plays at the same frequency.
Sound file is preloaded and stored in a global variable.
Do you have any suggestions to solve this problem?
Thanks everyone! [import]uid: 91771 topic_id: 18403 reply_id: 318403[/import]