Function
love.audio.newSource( decoder, type )
Creates a new Source from a Decoder.
Synopsis
source = love.audio.newSource( decoder, type )
Parameters
decoder Decoder The Decoder to create a Source from.
type SourceType Streaming or static source.
Returns
source Source A new Source that can play the specified audio.
Examples
Load SoundData and create a Source
  1. decoder = love.sound.newDecoder("bgm.ogg")
  2. bgm = love.audio.newSource(decoder)
Copyright © 2006-2010 LÖVE Development Team.