SlashCo Wiki

SlashCo.AudioSystem.FadeToPlaybackRate

  SlashCo.AudioSystem.FadeToPlaybackRate( IGModAudioChannel channel, number fadeTime = 3, number targetPlaybackRate = 1, function callback = nil )

Description

Fades the given channel to the given target playbackRate over time

It sounds shit if you keep the channel synced like how the background channel does which is why SlashCo.AudioSystem.SetBackgroundMusicPlaybackRate sets the playbackRate instantly.

Arguments

1IGModAudioChannel channel

The channel to use

2number fadeTime = 3

How many second it takes to fade the playbackRate

3number targetPlaybackRate = 1

The target playbackRate 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):