Memset the entire sound buffer

This commit is contained in:
simon.kagstrom 2009-01-05 07:38:54 +00:00
parent bdd3632fe3
commit 6de3d4a038

View File

@ -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;