Quantcast
Channel: KVR Audio
Viewing all articles
Browse latest Browse all 6796

Controller Scripting • flushing and syncronicity

$
0
0
I'm curious of there is some things that should be avoided during flush. How to make sure i'm not updating arrays or hashmaps that are accessed during flush.

for example, i'm working on a control layer thing for my midifighter twister and want to access the top most layer during flush but what if some other event pushes another one to the top during flush(). would that be an issue here?

If anyone has any thoughts or suggestions about this sort of thing it would be greatly appreciated.

Code:

  public void flush(){    //flush the topmost layer    TwisterLayer layer = layers.get(layers.size() - 1);    layer.flush();  }

Statistics: Posted by Kirkwood West — Tue Jan 16, 2024 10:35 pm — Replies 0 — Views 18



Viewing all articles
Browse latest Browse all 6796

Trending Articles