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

Source:getDistance 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:getAttenuationDistances. Returns the reference and maximum distance of the source. There's a bug in 0.8.0 preventing this function from working Function Synopsis ref, max = Source:getDistance( ) Arguments None. Returns number ref The reference distance. number max The maximum distance. See Also Source

Source:getDirection

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

Source:getCone

Source:getCone Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets 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 innerAngle, outerAngle, outerVolume = Source:getCone( ) Arguments None. Returns number innerAngle The inner angle from the Source's direction, in radians. The Source will play at normal volume if the listener is inside

Source:getChannels

Source:getChannels Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the number of channels in the Source. Only 1-channel (mono) Sources can use directional and positional effects. Function Synopsis channels = Source:getChannels( ) Arguments None. Returns number channels 1 for mono, 2 for stereo. See Also Source