|
|
|
@ -77,7 +77,7 @@
|
|
|
|
this.running = true;
|
|
|
|
this.running = true;
|
|
|
|
this.intervalID = setInterval(()=>{
|
|
|
|
this.intervalID = setInterval(()=>{
|
|
|
|
|
|
|
|
|
|
|
|
if(this.micLevel > -1){
|
|
|
|
if(this.micThreshold > -1){
|
|
|
|
|
|
|
|
|
|
|
|
const array = new Uint8Array(this.analyser.frequencyBinCount);
|
|
|
|
const array = new Uint8Array(this.analyser.frequencyBinCount);
|
|
|
|
this.analyser.getByteFrequencyData(array);
|
|
|
|
this.analyser.getByteFrequencyData(array);
|
|
|
|
|