Source:setCone

Source:setCone Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the Source's directional volume cones. Together with Source:setDirection, the cone angles allow for the Source's volume to vary depending on its direction. Function Synopsis Source:setCone( innerAngle, outerAngle, outerVolume ) Arguments number innerAngle The inner angle from the Source's direction, in radians. The Source will play at normal volume if the listener is inside the cone defined

Source:setDirection

Source:setDirection Available since LÖVE 0.7.0 This function is not supported in earlier versions. Sets the direction vector of the Source. A zero vector makes the source non-directional. Function Synopsis Source:setDirection( x, y, z ) Arguments number x The X part of the direction vector. number y The Y part of the direction vector. number z The Z part of the direction vector. Returns Nothing. See Also Source

Source:setDistance

Source:setDistance Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to Source:setAttenuationDistances. Sets the reference and maximum distance of the source. Function Synopsis Source:setDistance( ref, max ) Arguments number ref The new reference distance. number max The new maximum distance. Returns Nothing. See Also Source

Source:setLooping

Source:setLooping Sets whether the Source should loop. Function Synopsis Source:setLooping( loop ) Arguments boolean loop True if the source should loop, false otherwise. Returns Nothing. Examples function love.load() music = love.audio.newSource("music_loop.wav")   music:setLooping(true) music:play() -- Music will now play forever, until stopped or paused. end See Also Source

Source:setPitch

Source:setPitch Sets the pitch of the Source. Function Synopsis Source:setPitch( pitch ) Arguments number pitch Calculated with regard to 1 being the base pitch. Each reduction by 50 percent equals a pitch shift of -12 semitones (one octave reduction). Each doubling equals a pitch shift of 12 semitones (one octave increase). Zero is not a legal value. Returns Nothing. Examples function love.load() sound = love.audio.newSource("sound.wav")   -- Note that this code, as-is, will set t

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

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: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: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: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: