46,59d45 < function source_valid() { < if (typeof source !== 'undefined') { < if (source.length >= 4) { return true; } < } < return false; < } < < function sourcep_valid() { < if (typeof sourcep !== 'undefined') { < if (sourcep.length >= 4) { return true; } < } < return false; < } < 71,80d56 < var source=[]; < var sourcep=[]; < var notoka=location.search.split('notoka=')[1] ? (" " + decodeURIComponent(location.search.split('notoka=')[1]).split('&')[0]) : ""; < if (notoka == "") { < for (var iii=1; iii<=4; iii++) { < source.push(null); < sourcep.push(false); < } < } < 82,87d57 < if (source_valid()) { //if (typeof source !== 'undefined') { < source.push(null); < if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') { < sourcep.push(false); < } < } else { 89d58 < } 192,200c161 < if (source_valid()) { //if (typeof source !== 'undefined') { < if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') { < if (sourcep[eval(-1 + eval(whichs))]) { source[eval(-1 + eval(whichs))].stop(); } < } else { < eval(" if (source" + whichs + "p) { source[" + eval(-1 + eval(whichs)) + "].stop(); }"); < } < } else { < eval(" if (source" + whichs + "p) { source" + whichs + ".stop(); }"); < } --- > eval(" if (source" + whichs + "p) { source" + whichs + ".stop(); }"); 215,219c176 < if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') { < sourcep[eval(-1 + eval(whichs))]=true; < } else { < eval("source" + whichs + "p=true;"); < } --- > eval("source" + whichs + "p=true;"); 223,227c180 < if (source_valid()) { //if (typeof source !== 'undefined') { < source[eval(-1 + eval(whichs))].start(eval('0' + document.getElementById('startingin').value), eval('0' + document.getElementById('startingat').value)); < } else { < eval("source" + whichs + ".start" + sendb); < } --- > eval("source" + whichs + ".start" + sendb); 246,257c199,200 < if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') { < sourcep[eval(-1 + eval(ioffset + ioth))]=false; < } else { < eval("source" + eval(ioffset + ioth) + "p=false;"); < } < if (source_valid()) { //if (typeof source !== 'undefined') { < source[eval(-1 + eval(ioffset + ioth))] = context.createBufferSource(); < source[eval(-1 + eval(ioffset + ioth))].buffer = sb[eval(-1 + ioth)]; < source[eval(-1 + eval(ioffset + ioth))].connect(context.destination); < } else { < eval("source" + eval(ioffset + ioth) + " = context.createBufferSource(); source" + eval(ioffset + ioth) + ".buffer = sb[" + eval(-1 + ioth) + "]; source" + eval(ioffset + ioth) + ".connect(context.destination); "); < } --- > eval("source" + eval(ioffset + ioth) + "p=false;"); > eval("source" + eval(ioffset + ioth) + " = context.createBufferSource(); source" + eval(ioffset + ioth) + ".buffer = sb[" + eval(-1 + ioth) + "]; source" + eval(ioffset + ioth) + ".connect(context.destination); "); 266d208 < var ioth=1; 273,277c215 < if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') { < sourcep[eval(-1 + eval(whichs))]=true; < } else { < eval("source" + whichs + "p=true;"); < } --- > eval("source" + whichs + "p=true;"); 281,285c219 < if (source_valid()) { //if (typeof source !== 'undefined') { < source[eval(-1 + eval(whichs))].start(eval('0' + document.getElementById('startingin').value), eval('0' + document.getElementById('startingat').value)); < } else { < eval("source" + whichs + ".start" + sendb); < } --- > eval("source" + whichs + ".start" + sendb); 304,315c238,239 < if (sourcep_valid()) { //if (typeof sourcep !== 'undefined') { < sourcep[eval(-1 + eval(ioffset + ioth))]=false; < } else { < eval("source" + eval(ioffset + 1) + "p=false;"); < } < if (source_valid()) { //if (typeof source !== 'undefined') { < source[eval(-1 + eval(ioffset + ioth))] = context.createBufferSource(); < source[eval(-1 + eval(ioffset + ioth))].buffer = sb[eval(-1 + ioth)]; < source[eval(-1 + eval(ioffset + ioth))].connect(context.destination); < } else { < eval("source" + eval(ioffset + 1) + " = context.createBufferSource(); source" + eval(ioffset + 1) + ".buffer = sb[" + eval(-1 + eval(eval(whichs) % 4)) + "]; source" + eval(ioffset + 1) + ".connect(context.destination); "); < } --- > eval("source" + eval(ioffset + 1) + "p=false;"); > eval("source" + eval(ioffset + 1) + " = context.createBufferSource(); source" + eval(ioffset + 1) + ".buffer = sb[" + eval(-1 + eval(eval(whichs) % 4)) + "]; source" + eval(ioffset + 1) + ".connect(context.destination); "); 326,344d249 < if (source_valid()) { //if (typeof source !== 'undefined') { < source[0] = context.createBufferSource(); < source[1] = context.createBufferSource(); < source[2] = context.createBufferSource(); < source[3] = context.createBufferSource(); < source[0].buffer = bufferList[0]; < sb.push(bufferList[0]); < source[1].buffer = bufferList[1]; < sb.push(bufferList[1]); < source[2].buffer = bufferList[2]; < sb.push(bufferList[2]); < source[3].buffer = bufferList[3]; < sb.push(bufferList[3]); < < source[0].connect(context.destination); < source[1].connect(context.destination); < source[2].connect(context.destination); < source[3].connect(context.destination); < } else { 367d271 < }