SlashCo Wiki

SlashCo.AudioSystem.CalculateTime

 number SlashCo.AudioSystem.CalculateTime( IGModAudioChannel channel, number tickCount, boolean looping )

Description

Returns the calculated time a channel is supposed to be at, it accounts for looping sounds

This function is frequently used to synchronize channels, especially for the background channel.

Arguments

1IGModAudioChannel channel

The channel to use

2number tickCount

The tick count

3boolean looping

Set this to true if it should account for looping channels

Returns

1number time

What the current channel time is supposed to be