changeset 2505:6b3d98260a88

Fixed error causing Safari browsers to crash interface. Occurs only if syncronous="true"
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 13 Oct 2016 10:22:23 +0100
parents 42abe6eddfb5
children 52c819e710ca ae445d57687a
files js/core.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Wed Sep 21 12:19:40 2016 +0100
+++ b/js/core.js	Thu Oct 13 10:22:23 2016 +0100
@@ -1533,7 +1533,7 @@
                 } else {
                     var dst = copybuffer.getChannelData(c);
                     for (var n = 0; n < newLength; n++)
-                        dst[n] = src[n + start_sample];
+                        dst[n] = buffer[n + start_sample];
                 }
             }
             return copybuffer;