Difference between revisions of "Decoder:decode"

(Created page with "{{newin|11.0|110|type=function}} Decodes the audio and return SoundData object containing the decoded audio data. == Function == === Synopsis === <source lang="lua"> s...")
 
(Undo revision 23657 by Raidho36 (talk))
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{newin|[[11.0]]|110|type=function}}
 
{{newin|[[11.0]]|110|type=function}}
Decodes the audio and return [[SoundData]] object containing the decoded audio data.
+
Decodes the audio and returns a [[SoundData]] object containing the decoded audio data.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
soundData = Decoder:decode()
+
soundData = Decoder:decode( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
Line 15: Line 15:
 
* [[Source:queue]]
 
* [[Source:queue]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Decode audio data to PCM.}}
+
{{#set:Description=Decodes a chunk of audio data to a SoundData.}}
{{#set:Since=110}}
 
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Decoder:decode}}
 
{{i18n|Decoder:decode}}

Latest revision as of 06:16, 8 October 2019

Available since LÖVE 11.0
This function is not supported in earlier versions.

Decodes the audio and returns a SoundData object containing the decoded audio data.

Function

Synopsis

soundData = Decoder:decode( )

Arguments

None.

Returns

SoundData soundData
Decoded audio data.

See Also

Other Languages