Chili Sound Pack
Chili Sound Pack
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.
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: Chili Sound Pack
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.
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