SlashCo Wiki

SlashCo.AudioSystem.FadeToVolume

  SlashCo.AudioSystem.FadeToVolume( IGModAudioChannel channel, number fadeTime = 1, number targetVol = 1, function callback = nil )

Description

Fades the given channel to the given target volume over time

Arguments

1IGModAudioChannel channel

The channel to use

2number fadeTime = 1

How many second it takes to fade the volume

3number targetVol = 1

The target volume to reach

4function callback = nil

The callback function called once it finished fading

Function argument(s):
1IGModAudioChannel channel -

The channel used

2table channelData -

The channel data

Function return argument(s):