SpriteBatch:addq

SpriteBatch:addq Removed in LÖVE 0.9.0 It has been merged into SpriteBatch:add. Adds a Quad to the batch. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis id = SpriteBatch:addq( quad, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments Quad quad The Quad to add. number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (x-axis). number s

SpriteBatch:add

SpriteBatch:add Adds a sprite to the batch. Sprites are drawn in the order they are added. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis id = SpriteBatch:add( x, y, r, sx, sy, ox, oy, kx, ky ) Arguments number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (x-axis). number sy (sx) Scale factor (y-axis). number ox (0) Origin o

Source:tell

Source:tell Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the currently playing position of the Source. Function Synopsis position = Source:tell( unit ) Arguments TimeUnit unit ("seconds") The type of unit for the return value. Returns number position The currently playing position of the Source. See Also Source:seek Source

Source:stop

Source:stop Available since LÖVE 0.7.0 This function is not supported in earlier versions. Stops a Source. Function Synopsis Source:stop() Arguments None. Returns Nothing. See Also Source

Source:setVolumeLimits

Source:setVolumeLimits Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the volume limits of the source. The limits have to be numbers from 0 to 1. Function Synopsis Source:setVolumeLimits( min, max ) Arguments number min The minimum volume. number max The maximum volume. Returns Nothing. See Also Source

Source:setVolume

Source:setVolume Sets the current volume of the Source. Function Synopsis Source:setVolume( volume ) Arguments number volume The volume for a Source, where 1.0 is normal volume. Volume cannot be raised above 1.0. Returns Nothing. Examples Make a sound quieter or completely silent. function love.load() sound = love.audio.newSource("sound.wav")   -- Note that this code, as-is, will set the volume to 0.0, as per the last line, and that's how sound:play() will play it back. sound:

Source:setVelocity

Source:setVelocity Available since LÖVE 0.7.0 This function is not supported in earlier versions. Sets the velocity of the Source. This does not change the position of the Source, but lets the application know how it has to calculate the doppler effect. Function Synopsis Source:setVelocity( x, y, z ) Arguments number x The X part of the velocity vector. number y The Y part of the velocity vector. number z The Z part of the velocity vector. Returns Nothing. See Also Source

Source:setRolloff

Source:setRolloff Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the rolloff factor which affects the strength of the used distance attenuation. Extended information and detailed formulas can be found in the chapter "3.4. Attenuation By Distance" of OpenAL 1.1 specification. Function Synopsis Source:setRolloff( rolloff ) Arguments number rolloff The new rolloff factor. Returns Nothing. See Also Source

Source:setRelative

Source:setRelative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets whether the Source's position, velocity, direction, and cone angles are relative to the listener, or absolute. By default, all sources are absolute and therefore relative to the origin of love's coordinate system [0, 0, 0]. Only absolute sources are affected by the position of the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources. Function Synopsis

Source:setPosition

Source:setPosition Available since LÖVE 0.7.0 This function is not supported in earlier versions. Sets the position of the Source. Please note that this only works for mono (i.e. non-stereo) sound files! Function Synopsis Source:setPosition( x, y, z ) Arguments number x The X position of the Source. number y The Y position of the Source. number z The Z position of the Source. Returns Nothing. See Also Source love.audio.setPosition