- From: Stuart Memo <stuartmemo@gmail.com>
- Date: Mon, 15 Apr 2013 23:41:38 +0100
- To: public-audio@w3.org
Received on Monday, 15 April 2013 22:42:06 UTC
Hi all, I'm currently using a ScriptProcessorNode to generate white noise to emulate various drum sounds. My understanding from reading the spec is that there doesn't seem to be any way of scheduling a ScriptProcessorNode to start and stop it at desired times. The best solution to this problem I can think of is to schedule a gain node to mute/unmute at a certain time and then do my own garbage collection with setTimeout to disconnect the ScriptProcessorNode. This might be an edge case, and there's probably a very good reason that you shouldn't be able to start and stop a ScriptProcessorNode, but I thought I would flag it anyway. How about connectAtTime & disconnectAtTime as an alternative? Silly? Probably. - Stuart
Received on Monday, 15 April 2013 22:42:06 UTC