0
0

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.

  • You must to post comments
0
0

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)

  • You must to post comments
0
0

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?

Thanks.

  • You must to post comments
0
0

Just use FSOUND_FREE when you play the sound to let FMOD pick an open channel automatically.

  • You must to post comments
0
0

Oh, awesome! I can’t believe I forgot about that. Thanks so much.

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.