Dear all,
Fisrt of all, thanks to the fmod team for the amazing work done with the studio API.
We are running into an issue about sound desynchronised.
The following trace gets printed :
-> FMOD: SoundSourceInstrumentInstance::startChannelIfReady : Loading delay exceeded, sound may play at incorrect time
Does anyone know if there a special flag to increase the allowed loading time or if this issue rings a bell ?
We are running the following code (extracted from the samples):
FMOD::Studio::System system;
FMOD_RESULT result = FMOD::Studio::System::create(&system);
_ERRCHECK(result);
void *extraDriverData = 0;
result = system.initialize(32, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, extraDriverData);
_ERRCHECK(result);
const char* bankPath = _mediaPath([localMusic.bank UTF8String]);
FMOD::Studio::Bank masterBank;
_ERRCHECK( system.loadBank(bankPath, &masterBank) );
const char* eventGUID = [localMusic.mainEventGUID UTF8String];
FMOD::Studio::ID eventID = {0};
_ERRCHECK( FMOD::Studio::parseID(eventGUID, &eventID) );
FMOD::Studio::EventDescription eventDescription;
_ERRCHECK( system.getEvent(&eventID, FMOD_STUDIO_LOAD_BEGIN_NOW, &eventDescription) );
FMOD::Studio::EventInstance eventInstance;
_ERRCHECK( eventDescription.createInstance(&eventInstance) );
_ERRCHECK( eventInstance.start() );
result = system.update();