love.sound.newDecoder

love.sound.newDecoder

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

Function

Synopsis

decoder = love.sound.newDecoder( file, buffer )

Arguments

File file
The file with encoded sound data.
number buffer (2048)
The size of each decoded chunk, in bytes.

Returns

Decoder decoder
A new Decoder object.

Function

Synopsis

decoder = love.sound.newDecoder( filename, buffer )

Arguments

string filename
The filename of the file with encoded sound data.
number buffer (2048)
The size of each decoded chunk, in bytes.

Returns

Decoder decoder
A new Decoder object.

Function

Removed in LÖVE 0.7.1
This variant is not supported in that and later versions.

Synopsis

decoder = love.sound.newDecoder( file, buffer, rate )

Arguments

File file
The file with encoded sound data.
number buffer (2048)
The size of each decoded chunk, in bytes.
number rate (44100)
Samples per second, or quality of the audio. Use either 44100 (good), 22050 (medium) or 11025 (poor).

Returns

Decoder decoder
A new Decoder object.

Function

Removed in LÖVE 0.7.1
This variant is not supported in that and later versions.

Synopsis

decoder = love.sound.newDecoder( filename, buffer, rate )

Arguments

string filename
The filename of the file with encoded sound data.
number buffer (2048)
The size of each decoded chunk, in bytes.
number rate (44100)
Samples per second, or quality of the audio. Use either 44100 (good), 22050 (medium) or 11025 (poor).

Returns

Decoder decoder
A new Decoder object.

See Also


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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部