如何 clear/release 音频联系 html5
how to clear/release audio contact html5
有什么方法可以 clear/release/remove html5 中的音频上下文吗?
我已经完成了以下教程,但找不到任何内容。
youraudiocontext.close();
够简单吗?
关闭后可以用then()
方法基本重置:
youraudiocontext.close().then(function() {
// set things here //
});
The close() method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.
Closed contexts cannot have new nodes created, but can decode audio data, create buffers, etc.
This function does not automatically release all AudioContext-created objects, unless other references have been released as well; however, it will forcibly release any system audio resources that might prevent additional AudioContexts from being created and used, suspend the progression of audio time in the audio context, and stop processing audio data. The returned Promise resolves when all AudioContext-creation-blocking resources have been released. This method throws an INVALID_STATE_ERR exception if called on an OfflineAudioContext.
有什么方法可以 clear/release/remove html5 中的音频上下文吗?
我已经完成了以下教程,但找不到任何内容。
youraudiocontext.close();
够简单吗?
关闭后可以用then()
方法基本重置:
youraudiocontext.close().then(function() {
// set things here //
});
The close() method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.
Closed contexts cannot have new nodes created, but can decode audio data, create buffers, etc.
This function does not automatically release all AudioContext-created objects, unless other references have been released as well; however, it will forcibly release any system audio resources that might prevent additional AudioContexts from being created and used, suspend the progression of audio time in the audio context, and stop processing audio data. The returned Promise resolves when all AudioContext-creation-blocking resources have been released. This method throws an INVALID_STATE_ERR exception if called on an OfflineAudioContext.