Mercurial > hg > webaudioevaluationtool
changeset 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 | bae25b417c2c |
children | 037cf4e2b2d6 |
files | js/loudness.js python/pythonServer.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/js/loudness.js Thu Jun 02 10:23:31 2016 +0100 +++ b/js/loudness.js Thu Jun 02 13:56:05 2016 +0100 @@ -19,7 +19,9 @@ // timescale -> M or Momentary (returns Array), S or Short (returns Array), // I or Integrated (default, returns number) // target -> default is -23 LUFS but can be any LUFS measurement. - + if(navigator.platform == 'iPad' || navigator.platform == 'iPhone') { + buffer.ready(); + } if (buffer == undefined) { return 0;
--- a/python/pythonServer.py Thu Jun 02 10:23:31 2016 +0100 +++ b/python/pythonServer.py Thu Jun 02 13:56:05 2016 +0100 @@ -60,7 +60,7 @@ lenSt = len(st) fmt = st[lenSt-1].rsplit('.') fpath = "../"+urllib2.unquote(s.path) - size = path.getsize(fpath) + size = os.path.getsize(fpath) fileDump = open(fpath) s.send_response(200)