justin = { main feed , music , code , askjf , social , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.

Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [all]

Question: Sorry, I think I found the answer to my own question. Calling PreventUIRefresh(1) before TrackFX_SetParamNormalized() on the audio thread did the trick. And after that in the main thread: PreventUIRefresh(-1). In order to make this a question: Is this the right approach? Thanks!
Asked by helgoboss (188.105.155.x) on June 28 2016, 1:16pm
Reply on June 28 2016, 1:55pm (edited at June 28 2016, 1:56pm):
    No this is a very bad idea. In fact, doing pretty much anything via the REAPER API from a thread other than the main thread is likely to be bad/unpredictable. How are you in (one of) the audio threads to begin with? Don't answer here, post on the developer forum.
[back to index] | [unreplied] | [replied] | [all]
Copyright 2017 Justin Frankel. | RSS