Difference between revisions of "Source"
m |
|||
Line 8: | Line 8: | ||
}} | }} | ||
== Functions == | == Functions == | ||
− | {{#ask: [[Category:Functions]] [[parent::Source | + | {{#ask: [[Category:Functions]] [[parent::Source||Object]] [[Since::<071]] |
| headers=hide | | headers=hide | ||
| ?Description | | ?Description | ||
Line 17: | Line 17: | ||
* [[parent::love.audio]] | * [[parent::love.audio]] | ||
[[Category:Types]] | [[Category:Types]] | ||
− | {{#set:Description=A Source represents audio you can play back. | + | {{#set:Description=A Source represents audio you can play back.}} |
− | }} | ||
{{#set:Since=000}} | {{#set:Since=000}} | ||
== Other Languages == | == Other Languages == | ||
{{i18n|Source}} | {{i18n|Source}} |
Revision as of 17:35, 25 March 2011
A Source represents audio you can play back. You can do interesting things with Sources, like set the volume, pitch, and its position relative to the listener.
Constructors
love.audio.newSource | Creates a new Source from a file, SoundData, or Decoder. |
Functions
Object:type | Gets the type of the object as a string. |
Object:typeOf | Checks whether an object is of a certain type. |
Source:getDirection | Gets the direction of the Source. |
Source:getPitch | Gets the current pitch of the Source. |
Source:getPosition | Gets the position of the Source. |
Source:getVelocity | Gets the velocity of the Source. |
Source:getVolume | Gets the current volume of the Source. |
Source:isLooping | Returns whether the Source will loop. |
Source:isPaused | Returns whether the Source is paused. |
Source:isStatic | Returns whether the Source is static. |
Source:isStopped | Returns whether the Source is stopped. |
Source:pause | Pauses a source. |
Source:play | Plays a source. |
Source:resume | Resumes a paused source. |
Source:rewind | Rewinds a source. |
Source:setDirection | Sets the direction of the Source. |
Source:setLooping | Sets whether the Source should loop. |
Source:setPitch | Sets the pitch of the Source. |
Source:setPosition | Sets the position of the Source. |
Source:setVelocity | Sets the velocity of the Source. |
Source:setVolume | Sets the current volume of the Source. |
Source:stop | Stops a source. |
Supertypes
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info