Clearing AudioNodes in Web Audio

The web audio APIs The APIs do not really explain what to do with AudioNode after you are done with it. For example, if I ended up with AudioBufferSourceNode and I want to get rid of it, is it enough to just call noteOff() or do I need to disconnect it?

+7
source share
1 answer

It is enough to simply call noteOff() , or if AudioBufferSourceNode not circular, it will simply end by itself when it reaches the end of the sample data (without calling noteOff() ). No need to disable it.

+8
source

All Articles