Skip to content

Commit

Permalink
Reset outputReady even if we didn't wait for it
Browse files Browse the repository at this point in the history
This fixes a bug where outputReady would get stuck on `true` forever
if the application calls ASIOOutputReady() before we get a chance to
block on it.

Fixes #180
  • Loading branch information
dechamps committed Feb 2, 2023
1 parent df357e6 commit 8d0a029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flexasio/FlexASIO/flexasio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,8 @@ namespace flexasio {
if (!outputReady) {
if (IsLoggingEnabled()) Log() << "Waiting for the ASIO Host Application to signal OutputReady";
outputReadyCondition.wait(outputReadyLock, [&] { return outputReady; });
outputReady = false;
}
outputReady = false;
}

if (IsLoggingEnabled()) Log() << "Transferring output buffers from buffer index #" << driverBufferIndex << " to PortAudio";
Expand Down

0 comments on commit 8d0a029

Please sign in to comment.