Loading media/libmedia/ToneGenerator.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -1580,7 +1580,8 @@ void ToneGenerator::WaveGenerator::getSamples(short *outBuffer, } long dec = lAmplitude/count; // loop generation while (count--) { while (count) { count--; Sample = ((lA1 * lS1) >> S_Q14) - lS2; // shift delay lS2 = lS1; Loading @@ -1591,7 +1592,8 @@ void ToneGenerator::WaveGenerator::getSamples(short *outBuffer, } } else { // loop generation while (count--) { while (count) { count--; Sample = ((lA1 * lS1) >> S_Q14) - lS2; // shift delay lS2 = lS1; Loading Loading
media/libmedia/ToneGenerator.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -1580,7 +1580,8 @@ void ToneGenerator::WaveGenerator::getSamples(short *outBuffer, } long dec = lAmplitude/count; // loop generation while (count--) { while (count) { count--; Sample = ((lA1 * lS1) >> S_Q14) - lS2; // shift delay lS2 = lS1; Loading @@ -1591,7 +1592,8 @@ void ToneGenerator::WaveGenerator::getSamples(short *outBuffer, } } else { // loop generation while (count--) { while (count) { count--; Sample = ((lA1 * lS1) >> S_Q14) - lS2; // shift delay lS2 = lS1; Loading