Skip to main content

The "vngen_audio_stop" Function

Syntax#

vngen_audio_stop(id, [fade], [ease]);
ArgumentTypeDescription
idreal/stringThe unique identifier of the sound to stop (or keyword all for all sounds)
[fade]realOptional: The length of time to fade sound out, in seconds
[ease]integer/macroOptional: Sets the ease mode to perform the fade in

Description#

Stops the input sound with an optional fade out and removes the audio from memory.

See Macros & Keywords for a list of available ease modes.

Example#

vngen_event() {
vngen_audio_stop("explode");
vngen_audio_stop("explode", 2, ease_sin_in);
}