V44: fix crackle - uu tien audio thread bridge (HIGHEST) + FILL 24 (cushion ~90ms) PDC 7936
This commit is contained in:
@@ -121,7 +121,7 @@ int run_juce_fx_loop(const std::string& jobPath, const std::string& shmName,
|
||||
|
||||
#ifdef _WIN32
|
||||
timeBeginPeriod(1);
|
||||
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);
|
||||
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_HIGHEST);
|
||||
#endif
|
||||
|
||||
// Engine: prepare graph (chain theo fx_chain). sr/block từ job; header là
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user