Skip to content

Commit

Permalink
(fix) AudioContext Compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
zzmp committed Oct 9, 2014
1 parent a3cdc69 commit d0e2ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/julius.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
};

var initializeAudio = function(audio) {
audio.context = new AudioContext();
audio.context = new (window.AudioContext || window.webkitAudioContext)();
audio.processor = audio.context.createScriptProcessor(4096, 1, 1);
};

Expand Down

0 comments on commit d0e2ea7

Please sign in to comment.