Browse Source

WASAPI : Removed unnecessary latency in I/O ring buffers

tags/5.1.0
Marcus Tomlinson 6 years ago
parent
commit
482eceb06a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      RtAudio.cpp

+ 2
- 2
RtAudio.cpp View 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
}



Loading…
Cancel
Save