WASAPI : Removed unnecessary latency in I/O ring buffers
authorMarcus Tomlinson <themarcustomlinson@gmail.com>
Sun, 27 Jan 2019 23:22:31 +0000 (23:22 +0000)
committerMarcus Tomlinson <themarcustomlinson@gmail.com>
Sun, 27 Jan 2019 23:22:31 +0000 (23:22 +0000)
RtAudio.cpp

index babe13b4c82bf9c5e3a03d5e816c7ea15047a82a..fa7f2d45a4be3b13310f1c8dcaf56d39ad399f03 100644 (file)
@@ -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
     }