Raudio::Music
Inherits Reference < Object
Music represents a streaming audio source Use this for long audio tracks (background music, etc.) Music is streamed in chunks to save memory
Constructors
load(filename : String | Path) : self
Load music stream from file Supported formats: WAV, OGG, MP3, FLAC, XM, MOD, QOA
Class methods
load(filename : String | Path, &)
SourceInstance methods
close
Sourcefinalize
Sourcelooping=(value : Bool)
Set whether the music should loop when it reaches the end
Note: Changes take effect when play is called.
To change looping for already playing music, stop and restart it.
release
Sourcereleased?
Sourceupdate
Update music buffer with new stream data Call this regularly (every frame) when playing music