SlashCo Wiki

SlashCo.ReadSound

 CSoundPatch SlashCo.ReadSound( string fileName )

Description

We advise against using this. It may be changed or removed in a future update. This function will be replaced by SlashCo.AudioSystem

Loads and plays a sound using the specified sound file.
Sounds are cached globally so that subsequent calls using the same file can reuse the existing sound object.

Arguments

1string fileName

The path or name of the sound to load and play.

Returns

1CSoundPatch sound

The loaded sound object, or nil if the sound could not be created.