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. Please note that positional audio only works for mono (i.e. non-stereo) sources.

The Source controls (play/pause/stop) act according to the following state table.
{| class="wikitable"
! !! Playing !! Paused
|-
| play() || No change || Play
|-
| stop() || Pause + Rewind || Rewind
|-
| pause() || Pause || No change
|}
And for fans of flowcharts (note: omitted calls have no effect, stopping always rewinds).

[[File:NewSourceControls.png]]

== Constructors ==
{{#ask: [[Category:Functions]] [[Constructs::Source]] [[Concept:Current]]
| headers=hide
| default=None.
| format=template
| template=ListingFields
| introtemplate=ListingIntro
| outrotemplate=ListingOutro
| ?Description
| ?PrettySince
| ?PrettyRemoved
}}
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Source||Object]] [[Concept:Current]]
| headers=hide
| format=template
| template=ListingFields
| introtemplate=ListingIntro
| outrotemplate=ListingOutro
| limit=100
| ?Description
| ?PrettySince
| ?PrettyRemoved
}}

== Enums ==
{{#ask: [[Category:Enums]] [[parent::Source]] [[Concept:Current]]
| headers=hide
| format=template
| template=ListingFields
| introtemplate=ListingIntro
| outrotemplate=ListingOutro
| ?Description
| ?PrettySince
| ?PrettyRemoved
}}
== Supertypes ==
* [[parent::Object]]
== See Also ==
* [[parent::love.audio]]
[[Category:Types]]
{{#set:Description=A Source represents audio you can play back.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|Source}}