[lib.audio-manager] chromium/webkit fix + revert to MediaRecorder + removed debugs

This commit is contained in:
xdrm-brackets 2018-04-10 00:56:10 +02:00
parent 04c6e37527
commit baf7804857
1 changed files with 9 additions and 11 deletions

View File

@ -191,8 +191,6 @@ export default class AudioManager{
/* (1) Bind audio stream /* (1) Bind audio stream
---------------------------------------------------------*/ ---------------------------------------------------------*/
console.log('BINDING', _stream);
/* (1) bind our audio stream to our source */ /* (1) bind our audio stream to our source */
this.input = this.ctx.createMediaStreamSource(_stream); this.input = this.ctx.createMediaStreamSource(_stream);
@ -424,20 +422,20 @@ export default class AudioManager{
/* (2) Set our streaming binding function */ /* (2) Set our streaming binding function */
let streaming_binding = function(stream){ let streaming_binding = function(stream){
// this.recorder = new MediaRecorder(stream); this.recorder = new MediaRecorder(stream);
this.bindRecorderStream(stream); this.bindRecorderStream(stream);
// this.recorder.onstart = () => console.warn('[audio] recording'); this.recorder.onstart = () => console.warn('[audio] recording');
// this.recorder.onstop = () => { this.recorder.onstop = () => {
// this.recorder.stream.getTracks().map( t => t.stop() ); this.recorder.stream.getTracks().map( t => t.stop() );
// this.recorder = null; this.recorder = null;
// console.warn('[audio] stopped recording'); console.warn('[audio] stopped recording');
// }; };
// // start recording // start recording
// this.recorder.start(); this.recorder.start();
}.bind(this); }.bind(this);