diff options
author | Steven-xu94 <steven.xu13@gmail.com> | 2016-02-24 23:29:08 +0300 |
---|---|---|
committer | Steven-xu94 <steven.xu13@gmail.com> | 2016-02-24 23:29:08 +0300 |
commit | de9cd025f936b56f9e1c9768cc2d777185b0d7f2 (patch) | |
tree | 0b40759a5d93a3c84fc98dc225befade06f91dea | |
parent | abc36e730251139104889203826a192797230692 (diff) |
Fixed memset not setting entire array 0
-rw-r--r-- | src/MKAudioOutput.m | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |