SlashCo Wiki

SlashCo.AudioSystem.PrecacheSound

  SlashCo.AudioSystem.PrecacheSound( string soundFile, string mode, string identifier, function callback )

Description

Precaches a sound that can then be played using the given identifier

This function currently does nothing serverside.

This function may be changed in the future due to the following ToDo:
ToDo: Switch this function over to use PlaySound instead of implementing the logic itself again.

Arguments

1string soundFile

The soundFile to play

2string mode

The mode's to use, can be any of the flags from sound.PlayURL

3string identifier

The identifier to use for this sound

4function callback

The callback function after creation

Function argument(s):
1IGModAudioChannel channel -

The created channel

Function return argument(s):