Answered
Hi,
In the FMOD 1.05.02 Studio examples, the file load_banks.cpp contains this:
for (int i=0; i<BANK_COUNT; ++i)
{
if (data.banks[i] == NULL || !data.banks[i]->isValid())
{
data.banks[i]->unload();
}
}
This looks a bug; all banks are probably loaded, but this loop effectively does nothing. It should be inverted ( if !(data.banks[i]==NULL||…)) or something like that. Right now, all banks are probably cleaned up from the following system->release() instead of being cleaned up explicitly.
- Ruud van Gaal asked 3 years ago
- You must login to post comments
Best Answer
Thanks for that Ruud. The example is indeed incorrect and will be fixed in the 1.05.05 release.
- Nicholas Wilcox answered 3 years ago
- You must login to post comments
Your Answer
Please login first to submit.