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

Source:setAttenuationDistances Available since LÖVE 0.9.0 It has been renamed from Source:setDistance. Sets the reference and maximum attenuation distances of the Source. The parameters, combined with the current DistanceModel, affect how the Source's volume attenuates based on distance. Distance attenuation is only applicable to Sources based on mono (rather than stereo) audio. Function Synopsis Source:setAttenuationDistances( ref, max ) Arguments number ref The new reference attenuation

Source:seek

Source:seek Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the currently playing position of the Source. Function Synopsis Source:seek( offset, unit ) Arguments number offset The position to seek to. TimeUnit unit ("seconds") The unit of the position value. Returns Nothing. See Also Source:tell Source

Source:rewind

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

Source:resume

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

Source:play

Source:play Available since LÖVE 0.7.0 This function is not supported in earlier versions. Starts playing the Source. Function Available since LÖVE 0.9.1 This variant is not supported in earlier versions. Synopsis success = Source:play() Arguments None. Returns boolean success Whether the Source was able to successfully start playing. Function Removed in LÖVE 0.9.1 This variant is not supported in that and later versions. Synopsis Source:play() Arguments None. Returns Nothing.