bug fix and comment

This commit is contained in:
Tom Gowan 2018-11-07 21:54:27 +11:00 committed by mitchmindtree
parent 5eb311d8be
commit f2c8099810
1 changed files with 4 additions and 1 deletions

View File

@ -715,7 +715,10 @@ impl EventLoop {
au::deinterleave(&c_buffer[..], channels);
}
// Silence the buffer that is about to be used
// Silence the buffer that is about to be used.
// This checks if any other callbacks have already
// silenced this buffer. If not it will silence it
// and set the opposite buffer half to unsilenced.
let silence = match index {
0 => {
if !sys::SILENCE_FIRST.load(Ordering::SeqCst) {