Chili Sound Pack

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
cat_minim
Posts: 1
Joined: June 2nd, 2022, 10:01 am

Chili Sound Pack

Post by cat_minim » June 2nd, 2022, 10:12 am

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.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Chili Sound Pack

Post by albinopapa » July 8th, 2022, 3:21 am

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.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

Post Reply