* @extends {cr.EventTarget}
*/
function AudioManager() {
- var audioContext = new window.webkitAudioContext();
+ var audioContext = new window.AudioContext();
this.sampleRate = audioContext.sampleRate;
this.audioProc_ = null;
this.audioIn_ = null;
* @private
*/
AudioManager.prototype.onAudioReady_ = function(stream) {
- var audioContext = new window.webkitAudioContext();
+ var audioContext = new window.AudioContext();
this.stream_ = stream;
this.audioIn_ = audioContext.createMediaStreamSource(stream);
this.audioProc_ = audioContext.createScriptProcessor(