delete source of buffer overrun on Windows

This commit is contained in:
Peter Tissen 2013-11-03 23:03:07 +01:00
parent 86514ecbc0
commit c9eac0e10c

View file

@ -28,11 +28,9 @@ int PSPMixer::Mix(short *stereoout, int numSamples)
{
int numFrames = __AudioMix(stereoout, numSamples);
#ifdef _WIN32
if (numFrames < numSamples) {
// Our dsound backend will not stop playing, let's just feed it zeroes if we miss data.
memset(stereoout + 2 * 2 * numFrames, 0, 2 * 2 * (numSamples - numFrames));
numFrames = numSamples;
}
// Our dsound backend will not stop playing.
//__AudioMix fills the rest of the buffer with 0 already
numFrames = numSamples;
#endif
return numFrames;
}