|
|||
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. |
|||
| ^ | Joined: 11 Feb 2006 Member: #97939 Location: Helsinki, Finland | ||
|
|||
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. ---- ![]() |
|||
| ^ | Joined: 16 Feb 2005 Member: #58183 | ||
|
|||
Got the framerate fixed, Vsync was enabled because of a bad definition. Thanks for all the help ---- ![]() |
|||
| ^ | Joined: 16 Feb 2005 Member: #58183 |
| KVR Forum Index » DSP and Plug-in Development | All times are GMT - 8 Hours |
|
Printable version |
Disclaimer: All communications made available as part of this forum and any opinions, advice, statements, views or other information expressed in this forum are solely provided by, and the responsibility of, the person posting such communication and not of kvraudio.com (unless kvraudio.com is specifically identified as the author of the communication).
Powered by phpBB © phpBB Group

















