Answered
0
0

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.

  • You must to post comments
Best Answer
0
0

Thanks for that Ruud. The example is indeed incorrect and will be fixed in the 1.05.05 release.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.