Errors when stopping a disconnected source node?

Let's say you've created an AudioBufferSourceNode, s, and it is not
connected.

Case 1: You call s.start(). A short time later you call s.start() again.
Case 2: You call s.start(). Then s.stop() and s.stop() again.

In case 1, is an InvalidStateError thrown because you can only call start
once? In case 2, is an InvalidStateError thrown too since you can only call
stop once, after a source has started?

In both cases, the source hasn't really "started" because it's not
connected to anything.

I think errors should be thrown in both cases.

Ray

Received on Wednesday, 9 October 2013 21:18:16 UTC