W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

decodeAudioData and resampling

From: Ehsan Akhgari <ehsan@mozilla.com>
Date: Mon, 3 Dec 2012 18:17:47 -0500
Message-ID: <CANTur_4tm-cW26YvcH9Vn00Zjj6duzzm_HrBPzvuh5s9G-bs-g@mail.gmail.com>
To: public-audio@w3.org
The spec doesn't mention anything about whether the implementation is
supposed to resample the source audio buffer to the sample rate of the
audio context when decoding the audio.  From examining the behavior of
Chrome, I think the WebKit implementation does resample audio when
decoding, and the AudioBuffer passed to the success callback contains the
resampled data.  I can see both use cases for doing the resampling and not
doing that, but I think the most common use case (playing the AudioBuffer
back later) requires us to resample.

What do people think about this?  No matter what we end up doing, we need
to say explicitly what needs to happen in the spec.

Received on Monday, 3 December 2012 23:18:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:14 UTC