Difference between revisions of "Decoder"

m
m (Add PrettyDeprecated)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
An object which can gradually decode a sound file.
 
An object which can gradually decode a sound file.
 +
== Constructors ==
 +
{{#ask: [[Category:Functions]] [[Constructs::Decoder]] [[Concept:Current]]
 +
| headers=hide
 +
| default=None.
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 +
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 +
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Decoder]]
+
{{#ask: [[Category:Functions]] [[parent::Decoder||Object]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
| ?PrettyDeprecated
 
}}
 
}}
 +
== Supertypes ==
 +
* [[parent::Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.sound]]
 
* [[parent::love.sound]]
 
[[Category:Types]]
 
[[Category:Types]]
 
{{#set:Description=An object which can gradually decode a sound file.}}
 
{{#set:Description=An object which can gradually decode a sound file.}}
 
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Decoder}}
 
{{i18n|Decoder}}

Latest revision as of 12:56, 19 June 2019

An object which can gradually decode a sound file.

Constructors

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

Functions

Decoder:clone Create new copy of existing decoder. Added since 11.3
Decoder:decode Decodes a chunk of audio data to a SoundData. Added since 11.0
Decoder:getBitDepth Returns the number of bits per sample. Added since 0.9.0
Decoder:getBits Returns the number of bits per sample. Removed in 0.9.0
Decoder:getChannelCount Returns the number of channels in the stream. Added since 11.0
Decoder:getChannels Returns the number of channels in the stream. Deprecated in 11.0
Decoder:getDuration Gets the duration of the sound file. Added since 0.10.0
Decoder:getSampleRate Returns the sample rate of the Decoder.
Decoder:seek Sets the currently playing position of the Decoder. Added since 11.0
Object:release Immediately destroys the object's Lua reference. Added since 11.0
Object:type Gets the type of the object as a string.
Object:typeOf Checks whether an object is of a certain type.

Supertypes

See Also


Other Languages