love.audio

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

Types

SourceA Source represents audio you can play back.

Functions

love.audio.getDistanceModelReturns the distance attenuation model.Added since 0.8.0
love.audio.getNumSourcesGets the current number of simultaneously playing sources. Removed in 0.9.0
love.audio.getOrientationReturns the orientation of the listener.
love.audio.getPositionReturns the position of the listener.
love.audio.getSourceCountGets the current number of simultaneously playing sources.Added since 0.9.0
love.audio.getVelocityReturns the velocity of the listener.
love.audio.getVolumeReturns the master volume.
love.audio.newSourceCreates a new Source from a file, SoundData, or Decoder.
love.audio.pausePauses all audio.
love.audio.playPlays the specified Source.
love.audio.resumeResumes all audio.
love.audio.rewindRewinds all playing audio.
love.audio.setDistanceModelSets the distance attenuation model.Added since 0.8.0
love.audio.setOrientationSets the orientation of the listener.
love.audio.setPositionSets the position of the listener.
love.audio.setVelocitySets the velocity of the listener.
love.audio.setVolumeSets the master volume.
love.audio.stopStops currently played sources.

Enums

DistanceModelThe different distance models.Added since 0.8.0
SourceTypeTypes of audio sources.
TimeUnitUnits that represent time.Added since 0.8.0

See Also

Other Languages

Personal tools