Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2384:2ddc68898dff
Fix for #81. Browsers which cannot start a Web Audio context will fail with a message listing supported browsers
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Fri, 20 May 2016 14:04:36 +0100 |
parents | 1e7d98ca83be |
children | dde1f3254762 |
comparison
equal
deleted
inserted
replaced
2383:8696696f3a79 | 2384:2ddc68898dff |
---|---|
114 } | 114 } |
115 return selected; | 115 return selected; |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 window.onload = function() { | 119 var onload = function() { |
120 // Function called once the browser has loaded all files. | 120 // Function called once the browser has loaded all files. |
121 // This should perform any initial commands such as structure / loading documents | 121 // This should perform any initial commands such as structure / loading documents |
122 | 122 |
123 // Create a web audio API context | 123 // Create a web audio API context |
124 // Fixed for cross-browser support | 124 // Fixed for cross-browser support |
3223 } | 3223 } |
3224 this.state = 1; | 3224 this.state = 1; |
3225 return this.root; | 3225 return this.root; |
3226 }; | 3226 }; |
3227 } | 3227 } |
3228 | |
3229 onload(); |