Socket
Socket
Sign inDemoInstall

recorder-js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recorder-js - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

lib/index.js

2

package.json
{
"name": "recorder-js",
"version": "1.0.6",
"version": "1.0.7",
"description": "Record audio in your browser",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,23 +26,27 @@ import Microphone from './microphone';

init(stream) {
this.inputPoint = this.audioContext.createGain();
return new Promise((resolve) => {
this.inputPoint = this.audioContext.createGain();
this.stream = stream;
this.stream = stream;
this.realAudioInput = this.audioContext.createMediaStreamSource(stream);
this.audioInput = this.realAudioInput;
this.audioInput.connect(this.inputPoint);
this.realAudioInput = this.audioContext.createMediaStreamSource(stream);
this.audioInput = this.realAudioInput;
this.audioInput.connect(this.inputPoint);
this.analyserNode = this.audioContext.createAnalyser();
this.analyserNode.fftSize = 2048;
this.inputPoint.connect(this.analyserNode);
this.analyserNode = this.audioContext.createAnalyser();
this.analyserNode.fftSize = 2048;
this.inputPoint.connect(this.analyserNode);
this.audioRecorder = new Microphone(this.inputPoint);
this.audioRecorder = new Microphone(this.inputPoint);
const zeroGain = this.audioContext.createGain();
zeroGain.gain.value = 0.0;
const zeroGain = this.audioContext.createGain();
zeroGain.gain.value = 0.0;
this.inputPoint.connect(zeroGain);
zeroGain.connect(this.audioContext.destination);
this.inputPoint.connect(zeroGain);
zeroGain.connect(this.audioContext.destination);
this.updateAnalysers();
this.updateAnalysers();
resolve();
});
}

@@ -99,2 +103,6 @@

}
setOnAnalysed(handler) {
this.config.onAnalysed = handler;
}
}

@@ -101,0 +109,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc