Question: Is it safe to directly access AudioProcessor values/setters/getters from the AudioProcessorGraph (thread-wise), or should I use timers and lockfree queues to grab data? I want to be able to change a single AudioProcessor parameters at a time depending on which menu I am, but without having a polling thread for each processor, only a single one for the whole graph and distribute the data according to IDs associated with each processor.
Context: I’m using an AudioProcessorGraph to manage multiple AudioProcessors, along with a PollThread that gets data from external hardware.
Until now I was using the polling thread alone inside a single AudioProcessor for testing purposes, everything works fine.
I’m not using APVT or ValueTrees, only lockfree queues between Main thread and Audio Thread.