volume-meter
volume-meter copied to clipboard
Simple example of implementing a clip-detecting volume meter in Web Audio.
Just FYI. Many of the functions used here are or will be deprecated soon including navigator.getUserMedia and createScriptProcessor.
navigator.getUserMedia is not working even if changed to navigator.mediaDevices.getUserMedia.
Chrome stopped auto-loading of windows.onload. That's why the the demo stopped working. I have created a fork with a fix: https://happy-newton-2ba6da.netlify.app/
I was wondering how one would have to change this to get it working with chrome. For me it works well with Firefox, but on chrome and edge it only...
Here is TypeScript typings if someone is using this module in a TypeScript environment: ```typescript export = createAudioMeter; declare type ScriptProcessorNodeMod = ScriptProcessorNode & { clipping = boolean; lastClip =...
Hello, thanks for useful example. I have integrated it in my React app, with calling of `meter.shutdown()` and `window.cancelAnimationFrame(rafID)` when component is unmounted. It works fine, however I can't relaunch...
Hi, this small library would be perfect for me, but It doesn't work with Cordova. Buffers are always to 0. It's a bit weird because It work well in Android...