love.audio

Provides an interface to output sound to the user's speakers.

Types

Source A Source represents audio you can play back.

Functions

love.audio.getDistanceModel Returns the distance attenuation model. 0.8.0
love.audio.getDopplerScale Gets the global scale factor for doppler effects. 0.9.2
love.audio.getNumSources Gets the current number of simultaneously playing sources. 0.9.0
love.audio.getOrientation Returns the orientation of the listener.
love.audio.getPosition Returns the position of the listener.
love.audio.getSourceCount Gets the current number of simultaneously playing sources. 0.9.0
love.audio.getVelocity Returns the velocity of the listener.
love.audio.getVolume Returns the master volume.
love.audio.newSource Creates a new Source from a file, SoundData, or Decoder.
love.audio.pause Pauses all audio.
love.audio.play Plays the specified Source.
love.audio.resume Resumes all audio.
love.audio.rewind Rewinds all playing audio.
love.audio.setDistanceModel Sets the distance attenuation model. 0.8.0
love.audio.setDopplerScale Sets a global scale factor for doppler effects. 0.9.2
love.audio.setOrientation Sets the orientation of the listener.
love.audio.setPosition Sets the position of the listener.
love.audio.setVelocity Sets the velocity of the listener.
love.audio.setVolume Sets the master volume.
love.audio.stop Stops currently played sources.

Enums

DistanceModel The different distance models. 0.8.0
SourceType Types of audio sources.
TimeUnit Units that represent time. 0.8.0

See Also

love.audio.setDistanceModel
  • References/Game Development/LÖVE/love.audio

love.audio.setDistanceModel Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the distance attenuation model

2025-01-10 15:47:30
Source:isPlaying
  • References/Game Development/LÖVE/love.audio/Source

Source:isPlaying Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns whether the Source is playing.

2025-01-10 15:47:30
Source:setRelative
  • References/Game Development/LÖVE/love.audio/Source

Source:setRelative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets whether the

2025-01-10 15:47:30
love.audio.setDopplerScale
  • References/Game Development/LÖVE/love.audio

love.audio.setDopplerScale Available since LÖVE 0.9.2 This function is not supported in earlier versions. Sets a global scale factor for velocity-based

2025-01-10 15:47:30
Source:setVolumeLimits
  • References/Game Development/LÖVE/love.audio/Source

Source:setVolumeLimits Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the volume limits of the source.

2025-01-10 15:47:30
Source:setVelocity
  • References/Game Development/LÖVE/love.audio/Source

Source:setVelocity Available since LÖVE 0.7.0 This function is not supported in earlier versions. Sets the velocity of the Source. This

2025-01-10 15:47:30
Source:getType
  • References/Game Development/LÖVE/love.audio/Source

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

2025-01-10 15:47:30
Source:rewind
  • References/Game Development/LÖVE/love.audio/Source

Source:rewind Available since LÖVE 0.7.0 This function is not supported in earlier versions. Rewinds a Source. Function

2025-01-10 15:47:30
Source:setPosition
  • References/Game Development/LÖVE/love.audio/Source

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

2025-01-10 15:47:30
Source:setDirection
  • References/Game Development/LÖVE/love.audio/Source

Source:setDirection Available since LÖVE 0.7.0 This function is not supported in earlier versions. Sets the direction vector of the Source.

2025-01-10 15:47:30