Function
love.audio.newSource( data )
Creates a new Source from a SoundData.
Synopsis
source = love.audio.newSource( data )
Parameters
data SoundData The SoundData to create a Source from.
Returns
source Source A new Source that can play the specified audio.
Examples
Load SoundData and create a Source
  1. data = love.sound.newSoundData("sfx.wav")
  2. sfx = love.audio.newSource(data)
Copyright © 2006-2010 LÖVE Development Team.