mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +01:00
Memset the entire sound buffer
This commit is contained in:
parent
bdd3632fe3
commit
6de3d4a038
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user