##### Views

- Page
- Discussion
- View source
- History

# 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: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

- Object

## See Also

- love.sound

## Other Languages

Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – Tiếng Việt – 한국어
More info

Retrieved from "https://www.love2d.org/wiki/Decoder"
Category: Types

##### Personal tools

- Log in

##### Search

##### Toolbox

- What links here
- Related changes
- Special pages
- Printable version
- Permanent link
- Browse properties