V44: fix crackle - uu tien audio thread bridge (HIGHEST) + FILL 24 (cushion ~90ms) PDC 7936

This commit is contained in:
2026-08-28 17:22:50 +07:00
parent 8990f04357
commit 2afa828c8f
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ int run_realtime_fx_loop(const std::string& jobPath, const std::string& shmName,
// (fx-gui spawn + VST load instance thu 2, native VSTi GUI open...) preempt
// -> underrun -> am bi "bop nghet"/ngat quan. ChannelWorker (main.cpp)
// da dung THREAD_PRIORITY_ABOVE_NORMAL.
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
#endif
// Chờ chain ĐẦU TIÊN được worker build xong (gen>=1) trước khi READY.
// setChain() là ASYNC — worker thread load VST3 + preset mất 1-4s; nếu set