Difference between revisions of "love.sound.newDecoder"
m |
(Removed samplerate argument) |
||
Line 3: | Line 3: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | decoder = love.sound.newDecoder( file, buffer | + | decoder = love.sound.newDecoder( file, buffer ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|File|file|The file with encoded sound data.}} | {{param|File|file|The file with encoded sound data.}} | ||
{{param|number|buffer (1024)|The size of each decoded chunk, in bytes.}} | {{param|number|buffer (1024)|The size of each decoded chunk, in bytes.}} | ||
− | |||
=== Returns === | === Returns === | ||
{{param|Decoder|decoder|A new Decoder object.}} | {{param|Decoder|decoder|A new Decoder object.}} | ||
Line 14: | Line 13: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | decoder = love.sound.newDecoder( filename, buffer | + | decoder = love.sound.newDecoder( filename, buffer ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
{{param|string|filename|The filename of the file with encoded sound data.}} | {{param|string|filename|The filename of the file with encoded sound data.}} | ||
{{param|number|buffer (1024)|The size of each decoded chunk, in bytes.}} | {{param|number|buffer (1024)|The size of each decoded chunk, in bytes.}} | ||
− | |||
=== Returns === | === Returns === | ||
{{param|Decoder|decoder|A new Decoder object.}} | {{param|Decoder|decoder|A new Decoder object.}} |
Revision as of 22:47, 14 February 2011
Attempts to find a decoder for the encoded sound data in the specified file.
Contents
Function
Synopsis
decoder = love.sound.newDecoder( file, buffer )
Arguments
File file
- The file with encoded sound data.
number buffer (1024)
- 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 (1024)
- The size of each decoded chunk, in bytes.
Returns
Decoder decoder
- A new Decoder object.
See Also
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