W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2012

Re: Query over WebAudio API

From: r baxter <baxrob@gmail.com>
Date: Sat, 28 Jul 2012 16:34:09 -0700
Message-ID: <CACo9a0cygiiqm9QVgtwrRtBK_q50P0NDN1OtYFex=JGAbc=iug@mail.gmail.com>
To: Kaustubh Joshi <kdj.tikka@gmail.com>
Cc: public-audio@w3.org
I believe it should decode the whole file, and pass the decoded data
to successCallback, or else call errorCallback.

On Thu, Jul 26, 2012 at 2:21 AM, Kaustubh Joshi <kdj.tikka@gmail.com> wrote:
> HI,
>
> I was going through WebAudio API, I found quite interesting.
>
> The definition of decodeAudioData() API says: "successCallback is a callback
> function which will be invoked when the decoding is finished. The single
> argument to this callback is an AudioBuffer representing the decoded PCM
> audio data."
>
> I have one doubt here:
> 1) decodeAudioData is asynch implementation,
>     Is the decoding of whole Audio file (for e.g. test.wav) happens in one
> go ?
>
> 2) Is it mandatory to after decode is finished completely the callback
> should return ?
>
> 3) Does is recommended to have on partial decoding callback returns and
> play-out happens for decoded data.
> After play-out, the remaining data will get decoded, so that decoding will
> not happen in one go and will take less time ?
>
> Thanks,
> kdj
Received on Saturday, 28 July 2012 23:34:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 28 July 2012 23:34:39 GMT