Difference between revisions of "love.sound.newDecoder"

m (1 revision: Importing from potato (again).)
m
Line 1: Line 1:
 
 
Attempts to find a decoder for the encoded sound data in the specified file.
 
Attempts to find a decoder for the encoded sound data in the specified file.
 
== Function ==
 
== Function ==
Line 27: Line 26:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Attempts to find a decoder for the encoded sound data in the specified file.}}
 
{{#set:Description=Attempts to find a decoder for the encoded sound data in the specified file.}}
 +
 +
== Other Languages ==
 +
{{i18n|love.sound.newDecoder}}

Revision as of 20:34, 18 November 2010

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

Function

Synopsis

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

Arguments

File file
The file with encoded sound data.
number buffer (1024)
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

Synopsis

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

Arguments

string filename
The filename of the file with encoded sound data.
number buffer (1024)
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


Other Languages