From f2c80998105d6563f7cefbfa6e6c58fb71f9881f Mon Sep 17 00:00:00 2001 From: Tom Gowan Date: Wed, 7 Nov 2018 21:54:27 +1100 Subject: [PATCH] bug fix and comment --- src/platform/windows/asio/stream.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platform/windows/asio/stream.rs b/src/platform/windows/asio/stream.rs index 9ee121b..4e97b4d 100644 --- a/src/platform/windows/asio/stream.rs +++ b/src/platform/windows/asio/stream.rs @@ -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) {