From which thread(s) will an APVTS::Listener be called?

By looking at the code it is called synchronously from setValue():

setValue itself is called from the host via SDK, so it is host dependant. I know from AAX, that it even has a dedicated Automation thread, see these forum threads: Automation firing early in Pro Tools 11 and Reminder: AAX setParameter is asynchronous -> use locking - #8 by Mayae

TL;DR don’t expect it to be the same for all situations.

I think this is a good idea in any case, if it is time consuming. Especially it seems the execution time will be determined by external hardware, if I understood that correctly.
While prototyping I managed to stall all drawing of my DAW even from inside the plugin…

1 Like