Decoder:decode

Available since LÖVE 11.0
This function is not supported in earlier versions.

Decodes the audio and returns a SoundData object containing the decoded audio data.

Function

Synopsis

soundData = Decoder:decode( )

Arguments

None.

Returns

SoundData soundData (nil)
Decoded audio data or nil if the decoder reached the end of the file.

Notes

Tracker modules may internally use loop points and jump markers in a way that a decoder never reaches the end of the file, causing decode to never return nil.

See Also

Other Languages