Difference between revisions of "love.audio"

Line 1: Line 1:
 
Provides an interface to create noise with the user's speakers.
 
Provides an interface to create noise with the user's speakers.
 
== Types ==
 
== Types ==
{{#ask: [[Category:Types]] [[parent::love.audio]]
+
{{#ask: [[Category:Types]] [[parent::love.audio]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::love.audio]]
+
{{#ask: [[Category:Functions]] [[parent::love.audio]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 
== Enums ==
 
== Enums ==
{{#ask: [[Category:Enums]] [[parent::love.audio]]
+
{{#ask: [[Category:Enums]] [[parent::love.audio]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description

Revision as of 10:29, 25 March 2011

Provides an interface to create noise with the user's speakers.

Types

SourceA Source represents audio you can play back.

Functions

love.audio.getNumSourcesGets the current number of simultaneously playing sources.
love.audio.getOrientationReturns the orientation of the listener.
love.audio.getPositionReturns the position of the listener.
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 specific or all currently played Sources.
love.audio.playPlays the specified Source.
love.audio.resumeResumes all audio.
love.audio.rewindRewinds all playing audio.
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

SourceTypeTypes of audio sources.

See Also

Other Languages