Skip to content

Commit

Permalink
Merge PR #46: Fixed memset not setting entire array 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrautz authored Nov 27, 2016
2 parents 87ee784 + de9cd02 commit 5af6446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MKAudioOutput.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ - (BOOL) mixFrames:(void *)frames amount:(unsigned int)nsamp {
}
}
} else {
memset((short *)frames, 0, nsamp * _numChannels);
memset((short *)frames, 0, nsamp * _numChannels * sizeof(short));
}
[_outputLock unlock];

Expand Down

0 comments on commit 5af6446

Please sign in to comment.