diff js/core.js @ 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 32366178b6a8
children ae445d57687a
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;