Music.openFromFile

Open a music from an audio file.

This function doesn't start playing the music (call play() to do so).

Here is a complete list of all the supported audio formats: ogg, wav, flac, aiff, au, raw, paf, svx, nist, voc, ircam, w64, mat4, mat5 pvf, htk, sds, avr, sd2, caf, wve, mpc2k, rf64.

class Music
bool
openFromFile
(
string filename
)

Parameters

filename string

Path of the music file to open.

Return Value

Type: bool

True if loading succeeded, false if it failed.

Meta