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
You can decode audio data independently, without creating an AudioContext, using the exported functions [`decodeAudioData`](/docs/utils/decoding#decodeaudiodata) and
Decoding on the web has to be done via `AudioContext` only.
14
+
:::
15
+
12
16
If you already have an audio context, you can decode audio data directly using its [`decodeAudioData`](/docs/core/base-audio-context#decodeaudiodata) function;
13
17
the decoded audio will then be automatically resampled to match the context's `sampleRate`.
14
18
15
19
:::caution
16
20
Supported file formats:
17
-
- aac
18
21
- flac
19
-
- m4a
20
22
- mp3
21
-
- mp4
22
23
- ogg
23
24
- opus
24
25
- wav
26
+
- aac
27
+
- m4a
28
+
- mp4
29
+
30
+
Last three formats are decoded with ffmpeg on the mobile, [see for more info](/docs/other/ffmpeg-info).
25
31
:::
26
32
27
33
### `decodeAudioData`
@@ -39,54 +45,77 @@ if not provided, the original sample rate from the file is used.
0 commit comments