Whoops. shrink_buffer_size is undefined unless 8-bit or Mono is used.

This commit is contained in:
Brandon Wright 2016-11-03 14:53:13 -05:00
parent 962c372547
commit 782bdeb2eb

View File

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