comparison 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
comparison
equal deleted inserted replaced
2503:42abe6eddfb5 2505:6b3d98260a88
1531 if (typeof copybuffer.copyToChannel == "function") { 1531 if (typeof copybuffer.copyToChannel == "function") {
1532 copybuffer.copyToChannel(sub_frame, c); 1532 copybuffer.copyToChannel(sub_frame, c);
1533 } else { 1533 } else {
1534 var dst = copybuffer.getChannelData(c); 1534 var dst = copybuffer.getChannelData(c);
1535 for (var n = 0; n < newLength; n++) 1535 for (var n = 0; n < newLength; n++)
1536 dst[n] = src[n + start_sample]; 1536 dst[n] = buffer[n + start_sample];
1537 } 1537 }
1538 } 1538 }
1539 return copybuffer; 1539 return copybuffer;
1540 } 1540 }
1541 }; 1541 };