Home » Questions » Non-blocking loadSoundData
Since loadSoundData() accepts the FMOD_EVENT_NONBLOCKING flag, is there any way to know that it’s completed?
As of FMOD 4.33.02, you can use FMOD_MUSIC_INFO.all_samples_loaded to check the status of MusicSystem::loadSoundData().
[quote="Adiss":2kdqppi8]Can we have EventProject::getState()? :)[/quote:2kdqppi8]
Unfortunately we don’t have time to add this right now, so I’ve added it to our tracker. If you poke us in a month or two we might be able to get to it then.
Can I make a (hopefully) small request to go along with that?
Can we have EventProject::getState()?
We are now planning to add support for this in the near future. We’re in the middle of preparing for a big release at the moment (4.33.00), so we’ll have to add it in the following release (4.33.01).
My mistake, I was thinking of EventProject::loadSampleData. Looking at the API documentation, there doesn’t appear to be anyway to check that.
I’m actually wondering about MusicSystem::loadSoundData() instead of Event or EventGroup.
Yes. Use Event::getState and EventGroup::getState, they will return FMOD_EVENT_STATE_READY when they’re are finshed loading otherwise they will return FMOD_EVENT_STATE_LOADING.
Please login first to submit.
Copyright 2018 FIRELIGHT TECHNOLOGIES PTY LTD. All RIGHTS RESERVED.