You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/assets_pipeline/importing_audio_samples.rst
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,27 @@
3
3
Importing audio samples
4
4
=======================
5
5
6
-
Why import?
7
-
-----------
6
+
Supported files
7
+
---------------
8
8
9
-
Raw audio data in general is large and undesired. Godot provides two main
10
-
options to import your audio data: WAV and Ogg Vorbis.
9
+
Godot provides three options to import your audio data: WAV, Ogg Vorbis
10
+
and MP3.
11
11
12
12
Each has different advantages.
13
13
14
-
* WAV files use raw data or light compression, make few demands on the CPU to play back (hundreds of simultaneous voices in this format are fine), but take up significant space.
15
-
* Ogg Vorbis files use a stronger compression that results in much smaller file size, but require significantly more processing power to play back.
16
-
17
-
18
-
.. image:: img/audio_stream_import.png
14
+
* WAV files use raw data or light compression (IMA-ADPCM). They are lightweight
15
+
on the CPU to play back (hundreds of simultaneous voices in this format are
16
+
fine). The downside is that they take up a lot of disk space.
17
+
* Ogg Vorbis files use a stronger compression that results in much
18
+
smaller file size, but require significantly more processing power to
19
+
play back.
20
+
* MP3 files use better compression than WAV with IMA-ADPCM, but worse than
21
+
Ogg Vorbis. This means that a MP3 file with roughly equal quality to
22
+
Ogg Vorbis will be significantly larger. On the bright side, MP3 requires
23
+
less CPU usage to play back compared to Ogg Vorbis. This makes MP3 useful
24
+
for mobile and HTML5 projects where CPU resources are limited, especially
25
+
when playing multiple compressed sounds at the same time (such as long
0 commit comments