Parameters & Returns
Parameters
Returns
Quick Summary
Loads a sound file from disk.
Takes filename (path to sound file).
Returns a sound handle.
Technical Exegesis...
Loads a sound file into memory and returns a sound handle. The sound is fully loaded into memory for fast playback. Returns 0 if the filename is null or the file cannot be loaded.
Automatically initializes the audio engine on first use. Supports common audio formats (WAV, MP3, OGG). Sound handles must be freed with audFreeSound when no longer needed to prevent memory leaks.
Example
Local pistolSound:Int = audLoadSound(\"pistol.wav\")