Hey guys
Been having crashes this past week with my game and tracked it back to sound channels.
I've since learned:
- You are limited to 32 channels, any over that will return nil.
- Using soundChannel:setPaused(true) still takes up a sound channel
- Using soundChannel:stop() and play() is better as it frees up the sound channel in between uses.
This might help other people. Just wanted to check it's correct. Thanks!
Comments
Likes: Tom2012
Likes: Tom2012
https://deluxepixel.com
EDIT: My mistake. I was running the following loop, which was setting the sound channels to nil, without stopping them.
Likes: SinisterSoft, Tom2012