Decoder

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. 11.3
Decoder:decode Decodes a chunk of audio data to a SoundData. 11.0
Decoder:getBitDepth Returns the number of bits per sample. 0.9.0
Decoder:getBits Returns the number of bits per sample. 0.9.0
Decoder:getChannelCount Returns the number of channels in the stream. 11.0
Decoder:getChannels Returns the number of channels in the stream. 11.0
Decoder:getDuration Gets the duration of the sound file. 0.10.0
Decoder:getSampleRate Returns the sample rate of the Decoder.
Decoder:seek Sets the currently playing position of the Decoder. 11.0
Object:release Immediately destroys the object's Lua reference. 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


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Decoder