Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

FMOD Sound

4 replies · 81,094 views · Started 23 December 2012

FMOD is great so far, and allows for a shit ton of different audio formats including wav, mp3, midi, etc.. so I have this by default. 😊 However I ran into an interesting problem:

Sound handles spawn channel handles when played. This is great because it allows 'virtual channels" which means that SFX can be spawned multiple times without having to be reset each time! (one of the things I always hated) But it means that if the sound is played again before the first sound is finished then we lose the channel handle to the first. One solution would be to keep a list of all channels spawned by sound handles, though this quickly makes swiss cheese out of the code... I might of missed something in the documentation though as I am not that familiar with the FMOD API beyond 'normal use'. Anyone familiar with FMOD?

Although the author of the topic has been asking a question for a long time, now fmod has much better support. A lot of educational material and examples of use.