12-09-2024, 03:41 AM
|
#1 |
|
Human being with feelings
Join Date: Jun 2010
Location: Berlin
Posts: 680
|
A CLAP plugin changing its parameter count at runtime loaded in REAPER will trigger a misbehaving host check when using the clap-helpers. These helpers include some checks enforcing the correct interaction between a CLAP plugin and a CLAP host.
Most of the time, it goes like this:
That will trigger this check to fail: https://github.com/free-audio/clap-h...lugin.hxx#L392 The first clapStartProcessing is called on a different thread than the second clapStartProcessing call. Sometimes the check in "clapProcess()" at check "!self._isActive" fails: https://github.com/free-audio/clap-h...lugin.hxx#L449 When that happens in the debugger, the _isActive state is already at true, which shouldn't have triggered the check. This is likely due to the clapStartProcessing calls happening on different threads, but I'm guessing. I'd expect REAPER to not call clapStartProcessing before clapDeactivate and also not to call that twice. I'm also not sure why the two clapStartProcessing calls happen on different threads. This is happening on Windows 10 with REAPER v7.27. |
|
|
12-09-2024, 05:01 AM
|
#2 |
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 16,783
|
ah, I think I see why this would be, fixing!
|
|
|
12-09-2024, 06:52 AM
|
#3 |
|
Human being with feelings
Join Date: Jun 2010
Location: Berlin
Posts: 680
|
Can confirm v7.28 fixes this. Thanks a lot!
|
|
|
![]() |
| Thread Tools | |
|
|