Re: AudioBufferSourceNode start(0) without a buffer?

Chris Wilson writes:

> Do we want to do that, or just throw an exception when start() is called
> when there's no buffer set (or something like that)?

Could a slight change in order be a common pattern? e.g.

  c = new AudioContex();
  c.decodeAudioData(data, function () {
    s = c.createBufferSource();
    s.connect(c,destination);
    s.start(0);
    s.buffer = data;
  });

Received on Wednesday, 22 January 2014 18:51:15 UTC