Skip to content

Commit

Permalink
Change behavior of virtual studio's PLC auto to always not use worker
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedickey committed Jan 11, 2024
1 parent 39a6e55 commit 6baacac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gui/virtualstudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,12 @@ void VirtualStudio::completeConnection()
int buffer_strategy = m_audioConfigPtr->getBufferStrategy() + 1;
// adjust buffer_strategy for PLC "auto" mode menu item
if (buffer_strategy == 3) {
// run PLC without worker (4)
buffer_strategy = 4;
/*
// I don't believe this is still necessary,
// after splitting the input and output RtAudio streams
// See https://github.com/jacktrip/jacktrip/pull/1235
if (useRtAudio) {
// if same device for input and output,
// run PLC without worker (4)
Expand All @@ -890,6 +896,7 @@ void VirtualStudio::completeConnection()
// run PLC without worker (4)
buffer_strategy = 4;
}
*/
} else if (buffer_strategy == 5) {
buffer_strategy = 3; // run PLC with worker (3)
}
Expand Down

0 comments on commit 6baacac

Please sign in to comment.