load

fun load(fileName: String): MusicStream

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

Return

The loaded music stream.

Parameters

fileName

The name of the file to load the music stream from.