Music.openFromFile

Open a music from an audio file.

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

The supported audio formats are: WAV (PCM only), OGG/Vorbis, FLAC. The supported sample sizes for FLAC and WAV are 8, 16, 24 and 32 bit.

class Music
bool
openFromFile
(
string filename
)

Parameters

filename
Type: string

Path of the music file to open

Return Value

Type: bool

true if loading succeeded, false if it failed.

Meta