In updating to a new version, we have a question. For functions that require an “array of memory allocated by the user”, it’s unclear to us what that actually means. Does that mean 1) an array of classes?, or 2) an array of class pointers?
This is one such function:
FMOD_RESULT Studio::Bank::getEventList( Studio::EventDescription **array, int capacity, int *count );
We’ve tried both ways, and examined memory, and get varying event-not-found error messages in trying to use the returned data.
This is complicated by the fact that
Studio::EventDescription has a private constructor. Which lead us to believe that it was intended as an array of
Studio::EventDescription *, however, that doesn’t seem to work either. Any advice?
[RESOLVED] The root cause of the problem ended up being that the master bank and master bank string files were not loaded. There’s nothing explicit in the docs that says they’re required except a single line partway down the page on upgrading. And, it contradicts the one or two places that say that banks are monolithic (as opposed to the old fev/fsb relationship) and you don’t need to load anything else.