comparison js/loudness.js @ 2436:25c1436706af

Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author www-data <www-data@sucuk.dcs.qmul.ac.uk>
date Thu, 02 Jun 2016 14:20:55 +0100
parents aca96a5183be
children 464c6c6692d6
comparison
equal deleted inserted replaced
2424:d479fdc7221c 2436:25c1436706af
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)