Difference between revisions of "love.audio"
m (1 revision: Importing from potato (again).) |
m (→See Also) |
||
Line 20: | Line 20: | ||
== See Also == | == See Also == | ||
* [[parent::love]] | * [[parent::love]] | ||
+ | * [[Tutorial:Audio]] |
Revision as of 19:25, 27 February 2010
Provides an interface to create noise with the user's speakers.
Contents
Types
RecordingDevice | Represents an audio input device capable of recording sounds. |
Source | A Source represents audio you can play back. |
Functions
love.audio.getActiveEffects | Gets a list of the names of the currently enabled effects. |
love.audio.getActiveSourceCount | Gets the current number of simultaneously playing sources. |
love.audio.getDistanceModel | Returns the distance attenuation model. |
love.audio.getDopplerScale | Gets the global scale factor for doppler effects. |
love.audio.getEffect | Gets the settings associated with an effect. |
love.audio.getMaxSceneEffects | Gets the maximum number of active effects. |
love.audio.getMaxSourceEffects | Gets the maximum number of active Effects for each Source. |
love.audio.getNumSources | Gets the current number of simultaneously playing sources. |
love.audio.getOrientation | Returns the orientation of the listener. |
love.audio.getPlaybackDevice | Gets the currently active playback device. |
love.audio.getPlaybackDevices | Gets a list of playback devices on the system. |
love.audio.getPosition | Returns the position of the listener. |
love.audio.getRecordingDevices | Gets a list of RecordingDevices on the system. |
love.audio.getSourceCount | Gets the current number of simultaneously playing sources. |
love.audio.getVelocity | Returns the velocity of the listener. |
love.audio.getVolume | Returns the master volume. |
love.audio.isEffectsSupported | Gets whether Effects are supported in the system. |
love.audio.newQueueableSource | Creates a new Source usable for real-time generated sound playback with Source:queue. |
love.audio.newSource | Creates a new Source from a file, SoundData, or Decoder. |
love.audio.pause | Pauses specific or all currently played Sources. |
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. |
love.audio.setDopplerScale | Sets a global scale factor for doppler effects. |
love.audio.setEffect | Defines an effect that can be applied to a Source. |
love.audio.setMixWithSystem | Sets whether the system should mix the audio with the system's audio. |
love.audio.setOrientation | Sets the orientation of the listener. |
love.audio.setPlaybackDevice | Change or reconnect the audio device. |
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. |
EffectType | Different types of audio effects. |
EffectWaveform | Types of waveforms for ringmodulator effect. |
SourceType | Types of audio sources. |
StreamType | Types of audio sources. |
TimeUnit | Units that represent time. |