commit: 84b74e6aca9ad0dc35688e8ead220a4ae93d2b84
parent 05d2d9792c1bb47c25ddec18c3465563317860a3
Author: Adrian Siekierka <asiekierka@gmail.com>
Date: Sat, 31 Dec 2011 14:26:52 +0100
chromefix
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ibniz.html b/ibniz.html
@@ -750,9 +750,9 @@ function Parser(simpleGetPut,useAudio)
this.useFFAudio = true;
}
}
- else if(typeof AudioContext == "function")
+ if(typeof webkitAudioContext !== 'undefined')
{
- this.audioCtx = new AudioContext();
+ this.audioCtx = new webkitAudioContext();
this.audioSR = this.audioCtx.sampleRate/60;
this.useChromeAudio = true;
}