Hello, I think I’ve found a bug in FMOD. We had a problem here that FMOD would complain with “FMOD Error #16: Failed to allocate a new channel.” sometimes (but not always) when it tried to play certain ogg vorbis sounds, even though the channel it was playing on was valid and free. Everything else seemed fine (the sounds were loaded correctly, and FMOD detected its sampling rate (11025hz) fine).
To make a long story short, when I ran ogginfo on the affected files I noticed that it complained about the serial being 0 (with a warning that this was valid but might cause problems with some tools), so I reencoded them with a new serial. Everything seems to work fine with these new files.
The bug only appeared on windows. One of the testers has complained about this for some time, while it just started to happen for another coder, so it seems pretty random.
Hope this helps.
- trick asked 14 years ago
It’s loaded as a sample. There is definitely a connection between the file and this error though, because simply replacing a file with a good one makes the problem go away for that sound, without changing anything else.
If you want to have a look anyway, I put one of the files up [url=http://delirare.com/temp/explosion.ogg:3qkoyzhg]here[/url:3qkoyzhg].
Aw, it seems the bug has crept back, and you were right, it wasn’t the ogg’s fault after all. The bug doesn’t show up the first time the game is run with fresh data, so this misled us a bit (+ the coincidence that it only affected the 0-serial files…).
Sorry to have wasted your time. Will do more testing next time.
I didn’t write the sound code, but I think we’re using 3d sound, so we’ll check that out. Thank you for your help.
Please login first to submit.