Loop over sample size, not buffer size.

This commit is contained in:
Brandon Wright 2016-11-03 14:55:57 -05:00
parent 782bdeb2eb
commit 1f7926c48b
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ bool8 S9xMixSamples (uint8 *buffer, int sample_count)
{
uint8 *msu_sample = new uint8[sample_count * 2];
msu::resampler->read((short *)msu_sample, sample_count);
for(uint32 i = 0; i < (sample_count * 2); ++i)
for(uint32 i = 0; i < sample_count; ++i)
dest[i] += msu_sample[i];
}
}