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

后端 未结 5 1767
名媛妹妹
名媛妹妹 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:10

    You should really only have one AudioContext in the page.

    From the docs: "In most use cases, only a single AudioContext is used per document."

    I can't really think of a reason why you'd ever need more than one. Is there a specific issue you've run into that caused you to create multiple contexts?

提交回复
热议问题