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?
- OwensR asked 8 years ago
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.
- Adiss answered 8 years ago
Please login first to submit.