Difference between revisions of "Decoder:decode"
(Added type info / note about return value) |
|||
Line 9: | Line 9: | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|SoundData|soundData|Decoded audio data.}} | + | {{param|SoundData|soundData (nil)|Decoded audio data or nil if the decoder reached the end of the file. }} |
+ | == Notes == | ||
+ | Tracker modules may internally use loop points and jump markers in a way that a decoder never reaches the end of the file, causing decode to never return nil. | ||
== See Also == | == See Also == | ||
* [[parent::Decoder]] | * [[parent::Decoder]] |
Latest revision as of 00:43, 21 February 2025
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 (nil)
- Decoded audio data or nil if the decoder reached the end of the file.
Notes
Tracker modules may internally use loop points and jump markers in a way that a decoder never reaches the end of the file, causing decode to never return nil.
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