Mercurial > hg > webaudioevaluationtool
changeset 705:f38946647666
Added cross-browser support for webkit / non-webkit audioContext. Confirmed Chrome & Safari Support. Firefox: does not support innerText or dragging!
author | Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk> |
---|---|
date | Wed, 08 Apr 2015 18:18:17 +0100 |
parents | d24dc7fd97ae |
children | 542c613e31d6 |
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