Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Module
love.audio
Provides an interface to create noise with the user's speakers.
Types
Source
A Source represents audio you can play back.
Functions
getNumSources( )
Gets the current number of simulatenous playing sources.
getOrientation( )
Returns the orientation of the listener.
getPosition( )
Returns the position of the listener.
getVelocity( )
Returns the velocity of the listener.
getVolume( )
Returns the master volume.
newSource( file, type )
Creates a new Source from a file.
newSource( data )
Creates a new Source from a SoundData.
newSource( decoder, type )
Creates a new Source from a Decoder.
pause( )
Pauses all audio.
pause( source )
Pauses playback on the specified source.
play( source )
Plays the specified Source.
resume( )
Resumes all audio.
resume( source )
Resumes playback on the specified source.
rewind( )
Rewinds all playing audio.
rewind( source )
Rewinds the specified source to the beginning.
setOrientation( v )
Sets the orientation of the listener.
setPosition( v )
Sets the position of the listener.
setVelocity( x, y, z )
Sets the velocity of the listener.
setVolume( volume )
Sets the master volume.
stop( )
Stops all playing audio.
stop( source )
Stops playback on the specified source.
Constants
SourceType
Types of audio sources.
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question