Difference between revisions of "Decoder"

m
Line 1: Line 1:
 
An object which can gradually decode a sound file.
 
An object which can gradually decode a sound file.
 
== Constructors ==
 
== Constructors ==
{{#ask: [[Category:Functions]] [[Constructs::Decoder]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[Constructs::Decoder]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| default=None.
 
| default=None.
Line 7: Line 7:
 
}}
 
}}
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Decoder||Object]] [[Since::<071]]
+
{{#ask: [[Category:Functions]] [[parent::Decoder||Object]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description

Revision as of 22:59, 23 June 2012

An object which can gradually decode a sound file.

Constructors

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

Functions

Decoder:cloneCreate new copy of existing decoder.
Decoder:decodeDecodes a chunk of audio data to a SoundData.
Decoder:getBitDepthReturns the number of bits per sample.
Decoder:getBitsReturns the number of bits per sample.
Decoder:getChannelCountReturns the number of channels in the stream.
Decoder:getChannelsReturns the number of channels in the stream.
Decoder:getDurationGets the duration of the sound file.
Decoder:getSampleRateReturns the sample rate of the Decoder.
Decoder:seekSets the currently playing position of the Decoder.
Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Object

See Also


Other Languages