Do you guys normally have a manager class for your sounds? A class that keeps track of which sounds are loaded and frees them when they aren’t needed anymore.. I’m pretty new to this, so I thought it might be nice to hear what other people like to do to work with multiple sounds in a game.
- Ranthalion asked 14 years ago
Have you looked at the FSB stuff in the documentation? It is very easy either way to write code to allocate and free sounds as and when necessary. It sounds though that you are looking at game sounds so you really dont want any disk access during the main game loop in general so I would advise loading all the necessary sounds into memory at the start of the game or each level etc 8)
Um.. no I haven’t looked into the FSB stuff. I don’t even know what it is, or that is existed. I’m going to look through the documentation on it today. Thanks
What about managing the channels? I have different sounds that each may play, but only one sound can play in each channel at a time. How do you always choose an open channel when you don’t know which sounds are playing?
Please login first to submit.