|
|
@ -167,6 +167,11 @@ define(['jquery', 'underscore', 'audiocontext', 'webrtc.adapter'], function($, _ |
|
|
|
if (this.audioSource) { |
|
|
|
if (this.audioSource) { |
|
|
|
this.audioSource.disconnect(); |
|
|
|
this.audioSource.disconnect(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var audioTracks = stream.getAudioTracks(); |
|
|
|
|
|
|
|
if (audioTracks.length < 1) { |
|
|
|
|
|
|
|
this.audioSource = null; |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
// Connect to audioProcessor.
|
|
|
|
// Connect to audioProcessor.
|
|
|
|
this.audioSource = context.createMediaStreamSource(stream); |
|
|
|
this.audioSource = context.createMediaStreamSource(stream); |
|
|
|
//console.log("got source", this.audioSource);
|
|
|
|
//console.log("got source", this.audioSource);
|
|
|
|