Re: [web-audio-api] (OscillatorTypeModification): Oscillator type modification (#136)

> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=17367#11) by Chris Wilson on W3C Bugzilla. Wed, 04 Sep 2013 23:30:13 GMT

(In reply to [comment #11](#issuecomment-24244486))
> In the case of AudioBufferSourceNode, we let the buffer attribute to be set
> during playback with no restrictions, and of course no guarantees on when
> the "switch" happens.  I don't see why we should strive to do something
> different here, therefore I think option (2) is probably better.

This isn't the same case at all.  In fact, if you change the buffer attribute, what happens?  Does it reset?  I would not think this would make a change.

I tested, and Blink does in fact maintain phase across this change, and the more I've thought about, the more I believe that is exactly the right thing to do.  Otherwise, you have no idea what phase the oscillator is in anymore.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/136#issuecomment-24244493

Received on Wednesday, 11 September 2013 14:36:44 UTC