Re: Suggestion: Web Audio graphs that does not output sound but can write to an AudioBuffer instead

On Fri, Apr 13, 2012 at 1:27 PM, Raymond Toy <rtoy@google.com> wrote:

>
>
> On Fri, Apr 13, 2012 at 1:47 AM, Per Nyblom <perny843@hotmail.com> wrote:
>
>>  Hello,
>>
>> it would be great to be able to access the generated sound data without
>> having to send it to the speakers as well.
>> This feature is very useful for a musical application that should render
>> a wav-file or similar (perhaps with the help of the FileSystem API). Most
>> existing musical applications support this "offline" rendering mode.
>>
>
> James Wei has mentioned offline audio contexts.  I don't think it's
> documented anywhere, but you can look here<http://trac.webkit.org/browser/trunk/LayoutTests/webaudio/audiobuffersource-playbackrate.html> for
> a fairly simple example of an offline audio context that saves the Audio
> graph output to a wav file.
>
> Ray
>

Gentle warning:
Please don't use this API for offline AudioContexts until we have it in the
Web Audio specification.  This is an un-documented API and will likely
change soon!

Chris

Received on Friday, 13 April 2012 20:47:08 UTC