Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
Guidance needed for GUI coding
Goto page Previous  1, 2, 3
mystran
KVRAF
- profile
- pm
- e-mail
- www
PostPosted: Sun Apr 15, 2012 12:34 pm reply with quote
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.
----
<- my plugins | my music -> @Soundcloud
^ Joined: 11 Feb 2006  Member: #97939  Location: Helsinki, Finland
camsr
KVRAF
- profile
- pm
PostPosted: Sun Apr 15, 2012 2:04 pm reply with quote
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  
camsr
KVRAF
- profile
- pm
PostPosted: Wed Jun 06, 2012 9:33 pm reply with quote
Got the framerate fixed, Vsync was enabled because of a bad definition. Thanks for all the help Smile
----
^ Joined: 16 Feb 2005  Member: #58183  
All times are GMT - 8 Hours

Printable version
Page 3 of 3
Goto page Previous  1, 2, 3
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012