From 6de3d4a03847488639285d8a8bdf31da8d8bbdad Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Mon, 5 Jan 2009 07:38:54 +0000 Subject: [PATCH] Memset the entire sound buffer --- Src/SID_SDL.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/SID_SDL.i b/Src/SID_SDL.i index 12493de..8251618 100644 --- a/Src/SID_SDL.i +++ b/Src/SID_SDL.i @@ -22,8 +22,8 @@ void DigitalRenderer::fill_audio(Uint8 *stream, int len) int buf_size = this->sndbufsize * sizeof(Uint16); /* Wii is stereo-only, so divide the buffer by two */ - len = len / 2; memset(stream, 0, len); + len = len / 2; if (to_output <= 0) return;