Source:getDuration

Source:getDuration Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the duration of the Source. For streaming Sources it may not always be sample-accurate, and may return -1 if the duration cannot be determined at all. Function Synopsis duration = Source:getDuration( unit ) Arguments TimeUnit unit ("seconds") The time unit for the return value. Returns number duration The duration of the Source, or -1 if it cannot be determined. See Also Source

Source:getPitch

Source:getPitch Gets the current pitch of the Source. Function Synopsis pitch = Source:getPitch( ) Arguments None. Returns number pitch The pitch, where 1.0 is normal. See Also Source

Source:getPosition

Source:getPosition Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the position of the Source. Function Synopsis x, y, z = Source:getPosition( ) Arguments None. Returns number x The X position of the Source. number y The Y position of the Source. number z The Z position of the Source. See Also Source

Source:getRolloff

Source:getRolloff Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the rolloff factor of the source. Function Synopsis rolloff = Source:getRolloff( ) Arguments None. Returns number rolloff The rolloff factor. See Also Source

Source:getType

Source:getType Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the type (static or stream) of the Source. Function Synopsis sourcetype = Source:getType( ) Arguments None. Returns SourceType sourcetype The type of the source. See Also Source love.audio.newSource SourceType

Source:getVelocity

Source:getVelocity Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets the velocity of the Source. Function Synopsis x, y, z = Source:getVelocity( ) Arguments None. Returns 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. See Also Source Source:setVelocity

Source:getVolume

Source:getVolume Gets the current volume of the Source. Function Synopsis volume = Source:getVolume( ) Arguments None. Returns number volume The volume of the Source, where 1.0 is normal volume. See Also Source

Source:getVolumeLimits

Source:getVolumeLimits Available since LÖVE 0.8.0 This function is not supported in earlier versions. Returns the volume limits of the source. Function Synopsis min, max = Source:getVolumeLimits( ) Arguments None. Returns number min The minimum volume. number max The maximum volume. See Also Source

Source:isLooping

Source:isLooping Returns whether the Source will loop. Function Synopsis loop = Source:isLooping( ) Arguments None. Returns boolean loop True if the Source will loop, false otherwise. See Also Source

Source:isPaused

Source:isPaused Returns whether the Source is paused. Function Synopsis paused = Source:isPaused( ) Arguments None. Returns boolean paused True if the Source is paused, false otherwise. See Also Source