in src/js/client/microphone.ts [166:187]
playOutput(arrayBuffer:any){
let me = this;
try {
// TODO why do I call this twice?
if(arrayBuffer.byteLength > 0){
this.audioContext.decodeAudioData(arrayBuffer,
function(buffer:any){
me.audioContext.resume();
me.outputSource = me.audioContext.createBufferSource();
me.outputSource.connect(me.audioContext.destination);
me.outputSource.buffer = buffer;
me.outputSource.start(0);
},
function(){
console.log(arguments);
});
}
} catch(e) {
console.log(e);
}
}