Hi, is there anyway to tell if a sound event is playing it’s keyoff? I’m dealing with some looping sound effects that have a particularly long keyoff. However, the sound gets triggered to loop again, but since it’s still playing it’s keyoff it won’t play. So basically, is there anyway to check a sound event if it’s currently playing it’s keyoff?
- aphu07 asked 5 years ago
You could get the parameter position and check it against the sustain point. The problem being that you don’t have access to the sustain point info via the API. At least I couldn’t find it.
Two solutions to that come to mind: having your designer add the values to the event user properties (totally error prone), or precompile your FDP to add it automatically.
Open your FDP in any text editor and look for something like these:
FDPs are plain XMLs so you could just get all your sustain points and place them in the user properties before you build your FEVs. That way you can have this info in run-time without auxiliary files or hardcoded data.
- JoseCastro answered 5 years ago
Please login first to submit.