0
0

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.

  • You must to post comments
0
0

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?

  • You must to post comments
0
0

[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.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

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.

  • You must to post comments
0
0

Your programmer may be calling EventInstance::stop with FMOD_STUDIO_STOP_IMMEDIATE. If they pass FMOD_STUDIO_STOP_ALLOWFADEOUT instead, the event should obey your fadeout.

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.