Update AudioGeneratorRTTTL.cpp for dotted length (#668)

This commit is contained in:
Infinity authored and GitHub committed 2024-04-25 17:51:42 -07:00
1 parent 492a5beba4
commit 51a584c2b7
1 file changed
+3 -3
+3 -3
View File
@@ -236,13 +236,13 @@ bool AudioGeneratorRTTTL::GetNextNote()
ptr++;
note++;
}
if (!ReadInt(&scale)) {
scale = defaultOctave;
}
if ((ptr < len) && (buff[ptr] == '.')) {
ptr++;
dur += dur / 2;
}
if (!ReadInt(&scale)) {
scale = defaultOctave;
}
// Eat any trailing whitespace and comma
SkipWhitespace();
if ((ptr < len) && (buff[ptr]==',')) {