GUI: fix MML string on 256-wide waves

This commit is contained in:
tildearrow 2022-02-03 15:30:30 -05:00
parent ead65d8c21
commit a95d8e6fa3
2 changed files with 2 additions and 2 deletions

View file

@ -222,7 +222,7 @@ void FurnaceGUI::encodeMMLStr(String& target, unsigned char* macro, unsigned cha
} }
} }
void FurnaceGUI::encodeMMLStr(String& target, int* macro, unsigned char macroLen, signed char macroLoop) { void FurnaceGUI::encodeMMLStr(String& target, int* macro, int macroLen, int macroLoop) {
target=""; target="";
char buf[32]; char buf[32];
for (int i=0; i<macroLen; i++) { for (int i=0; i<macroLen; i++) {

View file

@ -391,7 +391,7 @@ class FurnaceGUI {
void applyUISettings(); void applyUISettings();
void encodeMMLStr(String& target, int* macro, unsigned char macroLen, signed char macroLoop); void encodeMMLStr(String& target, int* macro, int macroLen, int macroLoop);
void encodeMMLStr(String& target, unsigned char* macro, unsigned char macroLen, signed char macroLoop); void encodeMMLStr(String& target, unsigned char* macro, unsigned char macroLen, signed char macroLoop);
void decodeMMLStr(String& source, unsigned char* macro, unsigned char& macroLen, signed char& macroLoop, int macroMin, int macroMax); void decodeMMLStr(String& source, unsigned char* macro, unsigned char& macroLen, signed char& macroLoop, int macroMin, int macroMax);
void decodeMMLStr(String& source, int* macro, unsigned char& macroLen, signed char& macroLoop, int macroMin, int macroMax); void decodeMMLStr(String& source, int* macro, unsigned char& macroLen, signed char& macroLoop, int macroMin, int macroMax);