mirror of https://github.com/snes9xgit/snes9x.git
Loop over sample size, not buffer size.
This commit is contained in:
parent
782bdeb2eb
commit
1f7926c48b
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue