I have been loading events by recursively calling getEventGroup and then loading all of each groups events using getEventByIndex. I know this is not ideal so I am trying to switch to loadEventData. I am calling loadEventData on each root group in each .fev file. For some reason a number of events are not being loaded. I don’t think it’s because of memory because I don’t get any errors from FMOD. Is there anything I should be aware of that might not stand out in the documentation? Has anyone else had a similar issue and figured out how to resolve it?
- droberts asked 10 years ago
[quote="brett":1i6naue8]Are you talking about streamed fsbs not being loaded, because maybe you only specified samples in loadeventdata? (or vice versa?)
loadEventData loads fsb files, not ‘events’ (event info is already in the fev).[/quote:1i6naue8]
No we are not loading streams. I tried stream and sample (eventually we will want streaming), and just sample parameters. I suspect it is something we are doing but I followed the Designer API tutorial and, as I said earlier, have had success loading all events by calling getEvent for each one. This is tedious because it results in an open/read/close for EVERY event. As I said, I imagine I am missing something but I am doing what the documentation suggests.
It is strange that it only seems to happen on two wavebanks out of ten. This made me think it was a memory issue but unless loading by getEvent for every event uses much less memory than loadEventData, I don’t see how the issue is memory related, because whichever method we use, all events are loaded at the same time.
- droberts answered 10 years ago
Please login first to submit.