0
0

Hello, I have run into a problem using the FMOD_NONBLOCKING flag when creating a new sound via System::createSound().

According to the FMOD_NONBLOCKING tutorial, "You cannot do anything with this sound handle except call Sound::getOpenState…". I’m setting a callback to be called when System::createSound() finishes and I have a need to set some user data on this Sound before the callback is invoked. However, I am unable to do that, since all calls to Sound::setUserData() fail with an FMOD_ERR_NOTREADY return code.

Is there a workaround for this? Is this a feature that can be added in the future? Thank you –

  • You must to post comments
0
0

You can set user data when you createSound() using the FMOD_CREATESOUNDEXINFO.userdata field.

Or is that not sufficient?

  • You must to post comments
0
0

You, sir, are awesome. That is exactly the solution I was looking for. Thank you –

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.