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:getBitDepth Returns the number of bits per sample. 0.9.0
Decoder:getBits Returns the number of bits per sample. 0.9.0
Decoder:getChannels Returns the number of channels in the stream.
Decoder:getDuration Gets the duration of the sound file. 0.10.0
Decoder:getSampleRate Returns the sample rate of the Decoder.
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


Decoder:getBitDepth
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getBitDepth Available since LÖVE 0.9.0 It has been renamed from

2025-01-10 15:47:30
Decoder:getDuration
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getDuration Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the duration of the sound file. It

2025-01-10 15:47:30
Decoder:getBits
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getBits Removed in LÖVE 0.9.0 It has been renamed to

2025-01-10 15:47:30
Decoder:getSampleRate
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getSampleRate Returns the sample rate of the Decoder. Function Synopsis

2025-01-10 15:47:30
Decoder:getChannels
  • References/Game Development/LÖVE/love.sound/Decoder

Decoder:getChannels Returns the number of channels in the stream. Function Synopsis

2025-01-10 15:47:30