Re: Races - how bad?

On Jul 31, 2013, at 7:52 PM, Jer Noble <jer.noble@apple.com> wrote:

> 
> On Jul 31, 2013, at 4:42 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> 
>> Excellent, thanks.
>> 
>> "An AudioBuffer is immutable if it is associated with a live AudioNode." should be clarified for the case where the live AudioNode is an AudioBufferSourceNode.
> 
> Is this not sufficient?:  "An AudioBufferSourceNode's live state is set immediately after its start() method is called, and its live state is cleared immediately after an ended event is dispatched to it.”

Thanks. This now appears to be deterministic. Previously I thought you meant that the live state commenced when the node started to play, but this clarifies that it commences when the node is requested to play in the future. So I think it removes the uncertainty. 

> 
>> Another issue is that you talk about status changes "after the dispatch of an event". It sounds like you change the status before the execution of the event handler; is this correct? That should probably be clarified.
> 
> 
> I current have proposed that the AudioBufferSourceNode stops being a *live* node immediately after dispatching the `ended` event.  This is somewhat arbitrary, and could be changed to “immediately before dispatch”, which would no longer require that clarification.
> 
> However, I’ll add that clarification to the AudioProcessingEvent section.

Also sounds good. 

Received on Thursday, 1 August 2013 00:04:29 UTC