load

fun load(fileName: String): Sound

Loads a sound from a file, which can be in WAV, OGG, or MP3 format. The loaded sound should be unloaded with Sound.unload when it is no longer needed.

Return

The loaded sound.

Parameters

fileName

The name of the file to load the sound from.