Mercurial > hg > webaudioevaluationtool
comparison js/loudness.js @ 2432:aca96a5183be
Minor fix for #68. Disable loudness.js for mobile iOS #12
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 02 Jun 2016 13:56:05 +0100 |
parents | 760719986df3 |
children | 464c6c6692d6 |
comparison
equal
deleted
inserted
replaced
2431:bae25b417c2c | 2432:aca96a5183be |
---|---|
17 // This function returns the EBU R 128 specification loudness model and sets the linear gain required to match -23 LUFS | 17 // This function returns the EBU R 128 specification loudness model and sets the linear gain required to match -23 LUFS |
18 // buffer -> Web Audio API Buffer object | 18 // buffer -> Web Audio API Buffer object |
19 // timescale -> M or Momentary (returns Array), S or Short (returns Array), | 19 // timescale -> M or Momentary (returns Array), S or Short (returns Array), |
20 // I or Integrated (default, returns number) | 20 // I or Integrated (default, returns number) |
21 // target -> default is -23 LUFS but can be any LUFS measurement. | 21 // target -> default is -23 LUFS but can be any LUFS measurement. |
22 | 22 if(navigator.platform == 'iPad' || navigator.platform == 'iPhone') { |
23 buffer.ready(); | |
24 } | |
23 if (buffer == undefined) | 25 if (buffer == undefined) |
24 { | 26 { |
25 return 0; | 27 return 0; |
26 } | 28 } |
27 if (timescale == undefined) | 29 if (timescale == undefined) |