I’m trying to upgrade an old project to FMOD4 (v 00044449) from (v 00044005). Everything is working as expected except for the fact that createsound is taking an excruciatingly long time (3-4 seconds per sound). Many sounds need to be loaded for instant playback and they did load within a few ms in (v 00044005). The lag seems to be at the end between these points –
FMOD: OutputSoftware::createSample : lengthpcm 20850, lengthbytes 11084, channels 1, format 2, freq 44100, mode 00000049
FMOD: OutputSoftware::createSample : done
FMOD: SystemI::createSample : done
****** (LAG HERE)
FMOD: SystemI::createSoundInternal : No name found in file, use filename.
FMOD: SystemI::createSoundInternal : done. OpenState now = FMOD_OPENSTATE_READY.
All of my files are .caf and that format seems to take the longest. The lag for m4a files is shorter but still there. I’ve tried setting the suggestedsoundtype and this prevents FMOD from tying the different codecs but still receive lag at the same point. There was virtually no lag with these same files in (v 00044005). Any help would be greatly appreciated.
I’ve checked the differences between those two versions and I can see that changes were made to reduce decoding memory that may have affected performance.
IMA4 isn’t one of the formats we expect people to use on iOS, the codec is mainly tailored to decoding AAC in small quantities.
I would highly recommend using our tools to compress as IMA ADPCM into our FSB container, or use IMA ADPCM via .wav files, it is a lot more efficient.
I’ve spent the better part of the day trying to track down what FMOD Ex Version the CreateSound became so slow on opening IMA4 files. Here is where it changed from a few MS to over 3 seconds to load fairly small (1-5 seconds in length) IMA4 files. I hope this helps you track down the issue and possible solution for me.
FMOD Ex Version: 00044009 (SLOW!!!!)
FMOD Ex Version: 00044008 (FAST!!!!)
Please login first to submit.