Difference between revisions of "love.sound"

m (1 revision: Imported docs from potato.)
m (Add PrettyDeprecated)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
+
This module is responsible for decoding sound files.
 
+
It can't play the sounds, see [[love.audio]] for that.
 
== Types ==
 
== Types ==
{{#ask: [[Category:Types]] [[parent::love.sound]]
+
{{#ask: [[Category:Types]] [[parent::love.sound]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::love.sound]]
+
{{#ask: [[Category:Functions]] [[parent::love.sound]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
 
[[Category:Modules]]
 
[[Category:Modules]]
{{#set:Description=}}
+
{{#set:Description=This module is responsible for decoding sound files.}}
 +
{{#set:Since=000}}
 
== See Also ==
 
== See Also ==
 
* [[parent::love]]
 
* [[parent::love]]
 +
* [[Audio Formats]]
 +
 +
== Other Languages ==
 +
{{i18n|love.sound}}

Latest revision as of 11:48, 19 June 2019

This module is responsible for decoding sound files. It can't play the sounds, see love.audio for that.

Types

Decoder An object which can gradually decode a sound file.
SoundData Contains raw audio samples.

Functions

love.sound.newDecoder Attempts to find a decoder for the encoded sound data in the specified file.
love.sound.newSoundData Creates a new SoundData.


See Also

Other Languages