The "vngen_audio_play_sound" Function
vngen_audio_play_sound(id, sound, volume, fade, [ease], [loop]);
|real/string||The unique identifier to use for the new sound|
|sound||The sound resource to play|
|real (0-1)||The sound volume, where 1 is default and 0 is silent|
|real||The length of time to fade sound in, in seconds|
|integer/macro||Optional: Sets the ease mode to perform the fade in|
|boolean||Optional: Enables or disables endlessly looping the sound (disabled by default)|
Plays a new sound effect with an optional fade in and volume control. Sound effects are the most generic type of sound in VNgen and can be looped or played once and will be paused if
vngen_toggle_pause is run. Looped audio actions will be marked complete immediately and will not delay the next event until any fade transition is complete.
See Macros & Keywords for a list of available ease modes.
vngen_audio_play_sound("explode", snd_explosion, 1, 0, ease_none, false);