Add QOA (Quite OK Audio) as a WAV compression mode
This commit is contained in:
parent
658e97c93a
commit
b9cbf2c96f
9 changed files with 1059 additions and 45 deletions
|
|
@ -15,7 +15,7 @@
|
|||
<return type="int" enum="Error" />
|
||||
<param index="0" name="path" type="String" />
|
||||
<description>
|
||||
Saves the AudioStreamWAV as a WAV file to [param path]. Samples with IMA ADPCM format can't be saved.
|
||||
Saves the AudioStreamWAV as a WAV file to [param path]. Samples with IMA ADPCM or QOA formats can't be saved.
|
||||
[b]Note:[/b] A [code].wav[/code] extension is automatically appended to [param path] if it is missing.
|
||||
</description>
|
||||
</method>
|
||||
|
|
@ -56,6 +56,9 @@
|
|||
<constant name="FORMAT_IMA_ADPCM" value="2" enum="Format">
|
||||
Audio is compressed using IMA ADPCM.
|
||||
</constant>
|
||||
<constant name="FORMAT_QOA" value="3" enum="Format">
|
||||
Audio is compressed as QOA ([url=https://qoaformat.org/]Quite OK Audio[/url]).
|
||||
</constant>
|
||||
<constant name="LOOP_DISABLED" value="0" enum="LoopMode">
|
||||
Audio does not loop.
|
||||
</constant>
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
The compression mode to use on import.
|
||||
[b]Disabled:[/b] Imports audio data without any compression. This results in the highest possible quality.
|
||||
[b]RAM (Ima-ADPCM):[/b] Performs fast lossy compression on import. Low CPU cost, but quality is noticeably decreased compared to Ogg Vorbis or even MP3.
|
||||
[b]QOA ([url=https://qoaformat.org/]Quite OK Audio[/url]):[/b] Performs lossy compression on import. CPU cost is slightly higher than IMA-ADPCM, but quality is much higher.
|
||||
</member>
|
||||
<member name="edit/loop_begin" type="int" setter="" getter="" default="0">
|
||||
The begin loop point to use when [member edit/loop_mode] is [b]Forward[/b], [b]Ping-Pong[/b] or [b]Backward[/b]. This is set in seconds after the beginning of the audio file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue