love.audio.newSource( decoder, type )
Creates a new Source from a Decoder.
Synopsis
source = love.audio.newSource( decoder, type )
Returns
source |
Source |
A new Source that can play the specified audio. |
Examples
Load SoundData and create a Source
decoder = love.sound.newDecoder("bgm.ogg")
bgm = love.audio.newSource(decoder)