This commit is contained in:
Infinity 2024-04-17 16:07:49 -07:00 committed by GitHub
commit 832f310be7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -236,13 +236,13 @@ bool AudioGeneratorRTTTL::GetNextNote()
ptr++; ptr++;
note++; note++;
} }
if (!ReadInt(&scale)) {
scale = defaultOctave;
}
if ((ptr < len) && (buff[ptr] == '.')) { if ((ptr < len) && (buff[ptr] == '.')) {
ptr++; ptr++;
dur += dur / 2; dur += dur / 2;
} }
if (!ReadInt(&scale)) {
scale = defaultOctave;
}
// Eat any trailing whitespace and comma // Eat any trailing whitespace and comma
SkipWhitespace(); SkipWhitespace();
if ((ptr < len) && (buff[ptr]==',')) { if ((ptr < len) && (buff[ptr]==',')) {