fix realloc error

This commit is contained in:
Cjacker 2021-11-25 21:34:51 +08:00
parent bd996da4af
commit a57531b9f8

View File

@ -1416,10 +1416,11 @@ void S9xSamplesAvailable(void *data)
}
#endif
S9xMixSamples(sound_buffer, samples_to_write);
#ifndef ALSA
S9xMixSamples(sound_buffer, samples_to_write);
s_AudioOutput->Write(sound_buffer, samples_to_write * 2);
#else
S9xMixSamples(sound_buffer, frames*2);
frames_written = 0;
while (frames_written < frames) {