Skip to content

Commit

Permalink
fix chrome err with mic input
Browse files Browse the repository at this point in the history
TypeError: Failed to execute 'webkitGetUserMedia' on 'Navigator': The value provided is neither an array, nor does it have indexed properties.

Tried changing optional `[]` to optional `{}` and didn't work, so deleted line instead
Firefox seems to continue to work
  • Loading branch information
700software authored Aug 12, 2016
1 parent 244a6f5 commit 347a0d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pitchdetector.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function getLiveInput(context,callback){
"googNoiseSuppression": "false",
"googHighpassFilter": "false"
},
"optional": []
},
}, function(stream){
var liveInputNode = context.createMediaStreamSource(stream);
Expand Down Expand Up @@ -533,4 +532,4 @@ if(typeof module !== 'undefined') {
} else {
window.PitchDetector = PitchDetector;
}
})();
})();

0 comments on commit 347a0d5

Please sign in to comment.