Difference between revisions of "Decoder"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
An object which can gradually decode a sound file.
 
== Functions ==
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::Decoder]]
 
{{#ask: [[Category:Functions]] [[parent::Decoder]]
Line 9: Line 9:
 
* [[parent::love.sound]]
 
* [[parent::love.sound]]
 
[[Category:Types]]
 
[[Category:Types]]
{{#set:Description=}}
+
{{#set:Description=An object which can gradually decode a sound file.}}

Revision as of 16:17, 14 February 2010

An object which can gradually decode a sound 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.

See Also