minor typos found - but ones that would prevent a lot of frustrations from developers (because they are in code)

Hello,

I haven't run your code in the document https://www.w3.org/TR/webaudio/ - examples 17 & 18 - but just looking at it I think there are a couple of minor typos there that, if fixed, would prevent a whole load of programmer frustrations.  I just wanted to point out those small typos in this message.

1) In example 18, line 8 - the line that goes:

    this._nextUpdateFrames = this.interval;

    I think you meant

    this._nextUpdateFrames = this._updatingInterval;

    right?  Because there is no reference to any this.interval anywhere else in the code but this._updatingInterval is all over the place and that correction also makes sense functionally.

2) Similarly, in example 18, I think you meant

    this._volume

    in the two places where you refer to

    this.volume
 
    right?

Thanks.
-D

Received on Friday, 18 January 2019 22:40:49 UTC