Companion

object Companion

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun loadFromWave(wave: Wave): Sound

Loads a sound from a wave, which can be generated procedurally or loaded from a file. The loaded sound should be unloaded with Sound.unload when it is no longer needed.