Re: Removing a buffer from the context

On Fri, Jul 20, 2012 at 9:50 AM, Peter van der Noord
<peterdunord@gmail.com>wrote:

>
>
> What kind of buffer are you talking about?  AudioBufferSourceNode?
>
>
> Not the node, just a buffer that you create with context.createBuffer()
>
>
You mean context.createBufferSource()? That returns an
AudioBufferSourceNode.  I think normal JS rules follow.  JS will remove it
when all references are gone, but internally, the buffer will stay around
until it's done playing, at which time it will be removed, if there are no
other references to it.

Ray

Received on Friday, 20 July 2012 17:01:20 UTC