mirror of https://github.com/PCSX2/pcsx2.git
parent
53c38ef2cc
commit
b6d9ea86ee
|
@ -55,6 +55,9 @@ namespace {
|
||||||
void callback_fillBuffer(void *userdata, Uint8 *stream, int len) {
|
void callback_fillBuffer(void *userdata, Uint8 *stream, int len) {
|
||||||
// Length should always be samples in bytes.
|
// Length should always be samples in bytes.
|
||||||
assert(len / sizeof(StereoOut_SDL) == samples);
|
assert(len / sizeof(StereoOut_SDL) == samples);
|
||||||
|
#if SDL_MAJOR_VERSION >= 2
|
||||||
|
memset(stream, 0, len);
|
||||||
|
#endif
|
||||||
|
|
||||||
for(Uint16 i = 0; i < samples; i += SndOutPacketSize)
|
for(Uint16 i = 0; i < samples; i += SndOutPacketSize)
|
||||||
SndBuffer::ReadSamples(&buffer[i]);
|
SndBuffer::ReadSamples(&buffer[i]);
|
||||||
|
|
Loading…
Reference in New Issue