문제

The Web Audio API docs don't really explain what do with an AudioNode once you're done with it. For example, if I am done with an AudioBufferSourceNode and I want to get rid of it, is it enough to just call noteOff() or do I need to disconnect it?

도움이 되었습니까?

해결책

It's enough to just call noteOff(), or if the AudioBufferSourceNode is not looping it will just finish by itself when it reaches the end of sample data (without needing to call noteOff()). It is not necessary to disconnect it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top