Page 1 of 1

Chili Sound Pack

Posted: June 2nd, 2022, 10:12 am
by cat_minim
hi I am using Chili Sound Pack don't know if it's still supported but it works fine. however I found an issue when playing 3 or more of the same looping sounds and then calling StopOne() on each of them in sequence, sometime stop() is called more than once on the same channel. this I think is because the channel hasn't been yet removed from the vector of channels and put back into the pool. the result is sometimes a channel will continue to play when you intended it to stop. I added a bool flag to the channel class "stopped" initialised to false. check this flag and set it in StopOne(). if it's already set then Stop() the next channel in the vector. also set it to false when playing the sound.

Re: Chili Sound Pack

Posted: July 8th, 2022, 3:21 am
by albinopapa
Interesting, thanks for sharing.

The sound system is pretty basic, glad you were able to make enough sense of all that crazy code to make that change.