Update AudioGeneratorRTTTL.cpp
This commit is contained in:
parent
0abcf71012
commit
a9f6935aae
|
@ -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]==',')) {
|
||||||
|
|
Loading…
Reference in New Issue