I have a project with one event and 2 languages. Source *.wav files for these languages have different length. When I use event->getInfo, I get same event length for both languages. If I choose language #1 at FMOD Designer and then build project, I get event’s length equal to #1 *.wav file’s length. This behavior does’t depend on value of function setLanguage.
Is it a bug?
But in this cause event chooses right *.wav file to play.
- vadim.petrov asked 5 years ago
i’ve got same problem. but any answer could not be found.
why dose .fev contains only selected language event information?
setLangauge function doesn’t affect event length which have different wave length data each language.
how can i detect the event length of other language ?
- alkee answered 5 years ago
Just letting you know I have tested a fix for this so that a loaded bank will return its proper length from the bank itself, if you use setlanguage to something other than the default.
we’ll release this in 4.44.35 , i’ll see if we can get a version out with this in today.
just a question, are you after this info before calling getEvent or loadEventData (ie the bank data will be loaded) or are you after this information before loading the bank data? If before, it would require a significantly bigger change (FEV format will have to be updated and version # incremented), but if the bank is loaded we can do a workaround and probe the FSB for the right length.
It seems like an even bigger workaround would be to use different FEVs like you found (because the length is based on the selected language during build time) but that that is a bit clunky.
Please login first to submit.