- From: Raymond Toy <rtoy@google.com>
- Date: Wed, 2 Mar 2016 10:15:11 -0800
- To: Peter van der Noord <peterdunord@gmail.com>
- Cc: "public-audio-dev@w3.org" <public-audio-dev@w3.org>
Received on Wednesday, 2 March 2016 18:15:40 UTC
-public-audio +public-audio-dev I don't hear any clicks. But there are several things I see that might cause clicks. - gain.gain.value might not be exactly the value you expect because it's asynchronous with the audio thread that's doing the automation. - cancelScheduledValues doesn't (currently) hold the values so what happens after future events are cancelled may not have the value you expect. - depending on the state of the main thread and the audio thread, setValueAtTime(currentValue, now) may already be in the past from the view of the audio thread. That currently means setValueAtTime may not actually do anything, which means the linearRamp will start from the last automation value. On Wed, Mar 2, 2016 at 2:10 AM, Peter van der Noord <peterdunord@gmail.com> wrote: > I'm somewhat lost about the way AudioParams react to canceling/adjusting > while they are currently in a transition. I can't figure out why this > example results in clicks in the audio when repeatedly clicking the button: > > http://codepen.io/anon/pen/xVGwRY > > I don't see any reason why this should give me clicks, am i doing > something wrong here? > > > regards, > Peter van der Noord > >
Received on Wednesday, 2 March 2016 18:15:40 UTC