diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2016-11-28 01:52:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-28 01:52:17 +0300 |
commit | 5af6446c8cc4f256f43e8f2fb4df0298d4200956 (patch) | |
tree | b9dad03957fdd145a5caac302b5ee1cfcdb2d991 | |
parent | 87ee7842ee8c859117d625b4a2fb948585efca4f (diff) | |
parent | de9cd025f936b56f9e1c9768cc2d777185b0d7f2 (diff) |
Merge PR #46: 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]; |