probably im missing something super easy , but i need a looping sound to fade out rather than stop abruptly when the code stops it. how to do this in fmod studio? in designer i could set a fade in and out time for the event . i tryed doing the adsr thing but it will only fade in but not out.
- simon kamakazi asked 4 years ago
So if this is the case, would it be easier to just have your programmer use the FMOD_STUDIO_STOP_ALLOWFADEOUT call every time and we just control the envelope?
What would be the advantage of using the FMOD_STUDIO_STOP_IMMEDIATE call then?
- halfasemitone answered 4 years ago
[quote="halfasemitone":29x15lur]So if this is the case, would it be easier to just have your programmer use the FMOD_STUDIO_STOP_ALLOWFADEOUT call every time and we just control the envelope?
What would be the advantage of using the FMOD_STUDIO_STOP_IMMEDIATE call then?[/quote:29x15lur]
In some circumstances the ability to immediately "slam on the brakes" can be useful. Exactly when it will be useful will, of course, depend on the needs of your project, but it’s not uncommon that a game event that usually fades out gradually needs to be cut off abruptly due to a particular in-game event.
AHDSR on the event’s master track volume knob does work; I’m guessing this is what you’ve tried. However, I suspect that you’re not aware of how to audition the event’s stop behaviour; Simply click and hold the stop transport button until it begins to flash, and the event’s stop behaviour will play out in the tool.
More information about the behaviour of the stop transport button is available in the FMOD Studio manual.
thanx for the reply, yes im using an adsr on the master volume and it fades out in studio but in game it just cuts off . what should the programers be sending this event for it to use the adsr values when the event is stopped? cue? i have a sustain point on the loop too.
i suspect it is being sent some sort of "stop right now no matter what" command. im not a programmer sorry.
- simon kamakazi answered 4 years ago
Please login first to submit.