Skip to content

Commit

Permalink
Merge pull request muaz-khan#262 from PavelKonon/master
Browse files Browse the repository at this point in the history
Fix record audio on new stream
  • Loading branch information
muaz-khan committed Aug 15, 2014
2 parents e4cfcb9 + 40fafd9 commit 27d3b6b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions RecordRTC/RecordRTC.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,7 @@ function StereoAudioRecorder(mediaStream, root) {
var volume = Storage.VolumeGainNode;

// creates an audio node from the microphone incoming stream
if (!Storage.AudioInput)
Storage.AudioInput = context.createMediaStreamSource(mediaStream);

var audioInput = Storage.AudioInput;
var audioInput = context.createMediaStreamSource(mediaStream);

// connect the stream to the gain node
audioInput.connect(volume);
Expand Down

0 comments on commit 27d3b6b

Please sign in to comment.