Mercurial > hg > webaudioevaluationtool
changeset 1701:86bad9132601
Added cross-browser support for webkit / non-webkit audioContext. Confirmed Chrome & Safari Support. Firefox: does not support innerText or dragging!
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 08 Apr 2015 18:18:17 +0100 |
parents | 348141682333 |
children | 7594398334e4 |
files | core.js |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Wed Apr 08 10:57:43 2015 +0100 +++ b/core.js Wed Apr 08 18:18:17 2015 +0100 @@ -16,7 +16,8 @@ // This should perform any initial commands such as structure / loading documents // Create a web audio API context - // NORE: Currently this will only work with webkit browsers (Chrome/Safari)! + // Fixed for cross-browser support + var AudioContext = window.AudioContext || window.webkitAudioContext; audioContext = new AudioContext; // Create the audio engine object