Guidance needed for GUI coding

DSP, Plugin and Host development discussion.
RELATED
PRODUCTS

Post

camsr wrote: My original idea was to use a circular buffer and iterator that loops around the end of an array, with the index being incremented per sample. Is this thread safe? Because the way it works now, the values it needs from processReplacing are only received at the end of the block. I want the editor to receive those values, on its interrupt. I don't understand multi threading, but thanks for any advice.
Unfortunately it would take a bit too much effort to properly explain multi-threading and the potential problems and solutions on a forum post, so I suggest you search for some resources on the subject.. but basically it comes down to this: can you prove that it's thread-safe?

If you can't prove it, it probably isn't.

Post

I am going to try what you suggested. I know it's a nasty thing for the cache when the code is large, but for a peak meter it might work.

Post

Got the framerate fixed, Vsync was enabled because of a bad definition. Thanks for all the help :)

Post Reply

Return to “DSP and Plugin Development”