From 482eceb06ac1c19260e120a2c9e6dc1d04d28fcb Mon Sep 17 00:00:00 2001 From: Marcus Tomlinson Date: Sun, 27 Jan 2019 23:22:31 +0000 Subject: [PATCH] WASAPI : Removed unnecessary latency in I/O ring buffers --- RtAudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RtAudio.cpp b/RtAudio.cpp index babe13b..fa7f2d4 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -3842,7 +3842,7 @@ public: } // "in" index can end on the "out" index but cannot begin at it - if ( inIndex_ <= relOutIndex && inIndexEnd > relOutIndex ) { + if ( inIndex_ < relOutIndex && inIndexEnd > relOutIndex ) { return false; // not enough space between "in" index and "out" index } @@ -3903,7 +3903,7 @@ public: } // "out" index can begin at and end on the "in" index - if ( outIndex_ < relInIndex && outIndexEnd > relInIndex ) { + if ( outIndex_ <= relInIndex && outIndexEnd > relInIndex ) { return false; // not enough space between "out" index and "in" index } -- 2.30.2