0
0

when i use event->stop,can stop the currently event instance,but it can’t stop the same instance start before this instance.maxplayback is 3

  • You must to post comments
0
0

If you don’t have the Event handles to those other events, you can get them by:

  • Call Event->getInfo() to fill in an FMOD_EVENT_INFO structure.
  • Allocate an array of Event‘s of size EventInfo.numinstances (Event** pEvents = new Event[EventInfo.numinstances])
  • Zero out your EventInfo structure, except for numinstances
  • Set EventInfo.instances to your newly-allocated array
  • Call Event->getInfo() again, which should populate your array with Event handles to all instances of this Event.
  • Do stuff with the Event handles (in this case, stop() them)
  • Free your array

Hope that helps!

Edit: Tweaked wording.

  • You must to post comments
0
0

This has also been sent as an email to support. In the future, if you are going to post on the forums and email support for the same issue, please link to the forum post in the email.

Thanks,
Pete

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.