From de9cd025f936b56f9e1c9768cc2d777185b0d7f2 Mon Sep 17 00:00:00 2001 From: Steven-xu94 Date: Wed, 24 Feb 2016 15:29:08 -0500 Subject: Fixed memset not setting entire array 0 --- src/MKAudioOutput.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MKAudioOutput.m b/src/MKAudioOutput.m index 5b684d9..44e5458 100644 --- a/src/MKAudioOutput.m +++ b/src/MKAudioOutput.m @@ -209,7 +209,7 @@ } } } else { - memset((short *)frames, 0, nsamp * _numChannels); + memset((short *)frames, 0, nsamp * _numChannels * sizeof(short)); } [_outputLock unlock]; -- cgit v1.2.3