Added max MSP buffer limit
parent
31384fa642
commit
4d3346ea63
|
@ -1503,7 +1503,8 @@ MSP.crunch = function (code) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_codes.MSP_SET_NAME:
|
case MSP_codes.MSP_SET_NAME:
|
||||||
for (var i = 0; i<CONFIG.name.length; i++) {
|
var MSP_BUFFER_SIZE = 64;
|
||||||
|
for (var i = 0; i<CONFIG.name.length && i<MSP_BUFFER_SIZE; i++) {
|
||||||
buffer.push(CONFIG.name.charCodeAt(i));
|
buffer.push(CONFIG.name.charCodeAt(i));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue