love.audio.newSource( data )
Creates a new Source from a SoundData.
Synopsis
source = love.audio.newSource( data )
Returns
source |
Source |
A new Source that can play the specified audio. |
Examples
Load SoundData and create a Source
data = love.sound.newSoundData("sfx.wav")
sfx = love.audio.newSource(data)