Closed evoyy closed 1 year ago
Once the meter is created it runs continuously with no way to stop it, so the paintMeter() function is called forever, even if no audio is playing. I think it would be useful to expose a method to be able to start/stop it. Something like:
paintMeter()
myMeter.toggleActive()
Addressed in https://github.com/esonderegger/web-audio-peak-meter/pull/50
Once the meter is created it runs continuously with no way to stop it, so the
paintMeter()
function is called forever, even if no audio is playing. I think it would be useful to expose a method to be able to start/stop it. Something like: