logo

ibnjs

Unnamed repository; edit this file 'description' to name the repository.
commit: 90042e8d82e7d101e2b487eed313c4c3535a9505
parent 2cdd30931d9928933956c56f6cb348f1c284051d
Author: Adrian Siekierka <asiekierka@gmail.com>
Date:   Sat, 31 Dec 2011 11:49:22 +0100

fixed things for midori and etc

Diffstat:

Mibniz.html4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ibniz.html b/ibniz.html @@ -741,7 +741,7 @@ function Parser(simpleGetPut,useAudio) this.useFFAudio = false; this.useChromeAudio = false; this.buffer = new Float32Array(512); - if(Audio) + if(typeof(Audio) !== 'undefined') { this.audioOut = new Audio(); if(this.audioOut.mozSetup) @@ -750,7 +750,7 @@ function Parser(simpleGetPut,useAudio) this.useFFAudio = true; } } - if(webkitAudioContext) + if(typeof(webkitAudioContext) !== 'undefined') { this.audioCtx = new webkitAudioContext(); this.audioSR = this.audioCtx.sampleRate/60;