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:
parent
19264794cb
commit
81e4f773f5
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue