Skip to content

Commit

Permalink
Try to make sure pipewire does not change quantum for us
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Feb 2, 2024
1 parent 3f0a7e1 commit 92a065d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/systray/mod-desktop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,12 @@ private slots:
else
env.insert("MOD_LOG", "0");

#if !(defined(Q_OS_MAC) || defined(Q_OS_WIN))
char quantum[32] = {};
std::snprintf(quantum, sizeof(quantum)-1, "%s/48000", ui.cb_buffersize->currentText().toUtf8().constData());
env.insert("PIPEWIRE_QUANTUM", quantum);
#endif

processHost.setProcessEnvironment(env);
}

Expand Down

0 comments on commit 92a065d

Please sign in to comment.