From 4f2afe9adcdfa7d77b08efbaa44f880d93f48e41 Mon Sep 17 00:00:00 2001
From: Raymond Toy
still be created, through
createBuffer or
+ "#widl-BaseAudioContext-decodeAudioData-Promise-AudioBuffer--ArrayBuffer-audioData-DecodeSuccessCallback-successCallback-DecodeErrorCallback-errorCallback-DecodeAudioDataOptions-options">
decodeAudioData.)
@@ -1179,7 +1179,7 @@
responseType to "arraybuffer". Audio
file data can be in any of the formats supported by the
audio element. The buffer passed to
+ "#widl-BaseAudioContext-decodeAudioData-Promise-AudioBuffer--ArrayBuffer-audioData-DecodeSuccessCallback-successCallback-DecodeErrorCallback-errorCallback-DecodeAudioDataOptions-options">
decodeAudioData has its content-type determined by sniffing,
as described in [[mimesniff]].
Although the primary method of interfacing with this function is @@ -1286,9 +1294,13 @@
disableResampling is
+ false, resample it to the sample-rate of the
AudioContext if it is different from the
- sample-rate of audioData.
+ sample-rate of audioData. Otherwise, resampling is
+ disabled, and the decoded data is unchanged, with the sample
+ rate of the AudioBuffer set to the sample rate of the
+ encoded data.
+ This dictionary specifies how + decodeAudioData should process the encoded audio data to + produce the decoded linear PCM audio. +
+disableResampling is true, resampling is not
+ done, and the returned AudioBuffer has its sample rate set
+ to the rate specified by the encoded data.
+