mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
delete source of buffer overrun on Windows
This commit is contained in:
parent
86514ecbc0
commit
c9eac0e10c
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue