1
0
Fork 0

Comment out unused counter var inside a busy loop. Compilers might be smart enough to drop it, but this way is certain.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3958
This commit is contained in:
ripsaw8080 2016-02-05 13:26:23 +00:00
parent 19264794cb
commit 81e4f773f5

View file

@ -1177,9 +1177,9 @@ void Chip::GenerateBlock2( Bitu total, Bit32s* output ) {
while ( total > 0 ) {
Bit32u samples = ForwardLFO( total );
memset(output, 0, sizeof(Bit32s) * samples);
int count = 0;
// int count = 0;
for( Channel* ch = chan; ch < chan + 9; ) {
count++;
// count++;
ch = (ch->*(ch->synthHandler))( this, samples, output );
}
total -= samples;
@ -1191,9 +1191,9 @@ void Chip::GenerateBlock3( Bitu total, Bit32s* output ) {
while ( total > 0 ) {
Bit32u samples = ForwardLFO( total );
memset(output, 0, sizeof(Bit32s) * samples *2);
int count = 0;
// int count = 0;
for( Channel* ch = chan; ch < chan + 18; ) {
count++;
// count++;
ch = (ch->*(ch->synthHandler))( this, samples, output );
}
total -= samples;