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

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

2017-03-21 15:45:45
love.audio.setDopplerScale

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

2017-03-21 15:45:45
love.audio.getVelocity

love.audio.getVelocity Returns the velocity of the listener. Function Synopsis

2017-03-21 15:45:38
love.audio.setOrientation

love.audio.setOrientation Sets the orientation of the listener. Function Synopsis

2017-03-21 15:45:46
love.audio.getNumSources

love.audio.getNumSources Removed in LÖVE 0.9.0 It has been renamed to

2017-03-21 15:45:35
love.audio.getDopplerScale

love.audio.getDopplerScale Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the current global scale factor

2017-03-21 15:45:34
love.audio.getSourceCount

love.audio.getSourceCount Available since LÖVE 0.9.0 It has been renamed from

2017-03-21 15:45:37
love.audio.getVolume

love.audio.getVolume Returns the master volume. Function Synopsis

2017-03-21 15:45:39
love.audio.play

love.audio.play Plays the specified Source. Function Synopsis love

2017-03-21 15:45:42
love.audio.stop

love.audio.stop Stops currently played sources. Function This

2017-03-21 15:45:49