Commit 14461d94 authored by Jakub Fiala's avatar Jakub Fiala

base64 decoder now removes padding chars first

parent ebbc2053
......@@ -33382,6 +33382,8 @@ maximJs.maxiTools.loadSample = function(url, samplePlayer, contextIn) {
var ab_bytes = (b64.length/4) * 3;
var arrayBuffer = new ArrayBuffer(ab_bytes);
b64 = this.removePaddingFromBase64(this.removePaddingFromBase64(b64));
var bytes = parseInt((b64.length / 4) * 3, 10);
var uarray;
......@@ -214,6 +214,8 @@ maximJs.maxiTools.loadSample = function(url, samplePlayer, contextIn) {
var ab_bytes = (b64.length/4) * 3;
var arrayBuffer = new ArrayBuffer(ab_bytes);
b64 = this.removePaddingFromBase64(this.removePaddingFromBase64(b64));
var bytes = parseInt((b64.length / 4) * 3, 10);
var uarray;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment