Failed to construct 'AudioContext': number of hardware contexts reached maximum

后端 未结 5 1760
名媛妹妹
名媛妹妹 2021-02-07 03:49

Is there a way to remove an AudioContext after I\'ve created it?

var analyzers = [];
var contexts = [];

try {
   for(var i = 0; i<20; i++) {
            


        
5条回答
  •  清酒与你
    2021-02-07 04:25

    Reference it to a variable i.e:
    var myAudioCtx = new AudioContext();
    Then destroy by calling
    myAudioCtx.close();
    That's it.

提交回复
热议问题