You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling DBMeter.start() multiple times (accidentally or on purpose) the resulting dB value will always be -70.
I would suggest, throwing an error, on multiple starts.
My setup was:
constdummy={dB: 0,isListening: false,startMeter(){const$this=this;setInterval(()=>{if(!this.paused){if(!this.isListening){DBMeter.isListening((isListening)=>{this.isListening=isListening;if(!isListening){DBMeter.start(_.throttle($this.recordMeter,100),$this.errorLog);}},$this.errorLog);return;}// update stuff with this.db}},100);},recordMeter(dB){this.dB=dB;},errorLog(e){// log}};
On iOS the first few intervals DBMeter.isListening() passes false so i told the system to start again.
After like 0.3 to 1 second DBMeter.isListening() passes true.
The text was updated successfully, but these errors were encountered:
When calling
DBMeter.start()
multiple times (accidentally or on purpose) the resulting dB value will always be -70.I would suggest, throwing an error, on multiple starts.
My setup was:
On iOS the first few intervals DBMeter.isListening() passes
false
so i told the system to start again.After like 0.3 to 1 second DBMeter.isListening() passes true.
The text was updated successfully, but these errors were encountered: