The arguments to memset are ordered incorrectly in the

pcm_hw_clear function of audio.c.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-01-20 20:31:09 +01:00
1 parent 31415c26f9
commit 55fe40b0d1
1 file changed
+2 -2
+2 -2
View File
@@ -257,11 +257,11 @@ void pcm_hw_clear (HWVoice *hw, void *buf, int len)
switch (hw->fmt) {
case AUD_FMT_S16:
case AUD_FMT_S8:
memset (buf, len << hw->shift, 0x00);
memset (buf, 0x00, len << hw->shift);
break;
case AUD_FMT_U8:
memset (buf, len << hw->shift, 0x80);
memset (buf, 0x80, len << hw->shift);
break;
case AUD_FMT_U16:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.