load

fun load(fileName: String): Wave

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

Return

The loaded wave.

Parameters

fileName

The name of the file to load the wave from.