mirror of
https://github.com/libretro/snes9x.git
synced 2024-12-12 19:22:27 +00:00
Whoops. shrink_buffer_size is undefined unless 8-bit or Mono is used.
This commit is contained in:
parent
962c372547
commit
782bdeb2eb
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user