Update AudioGeneratorRTTTL.cpp for dotted length (#668)
This commit is contained in:
1 parent
492a5beba4
commit
51a584c2b7
1 file changed
+3
-3
@@ -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]==',')) {
|
||||
|
||||
Reference in new issue
Block a user