0
0

I can initialize the event system, project, load an fsb and get all the pointers to things like groups and events and all that with no problems. I can also call getPropertyByIndex on events and it generally seems to work, but when I call it with FMOD_EVENTPROPERTY_ONESHOT it always gives me 0, whether I’ve set that property to Yes or No in FMOD Designer.

Any ideas what might be wrong?

  • You must to post comments
0
0

Well, ok… I guess that setting the event "Oneshot" property to "Yes" (or, "No" for that matter) actually does nothing and is only there to confuse people. That was a fun way to waste a couple of days.

  • You must to post comments
0
0

What you’re experiencing there is a side-effect of the "Simple Events" system. Events that have no parameters, one layer with one sound on it, and no effects are created as "simple events". These events have some of their properties (for example, OneShot) inferred from the properties of the Event and the Sound Definition.

If the sound in the layer is marked as looping, then the simple event will be OneShot false.
If the sound definition has a nonzero spawn time, the simple event will be OneShot false.

There may be other things that cause the property to be inferred, but those are the two most common ones.

For complex events, the OneShot property works as you’d expect.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.