Thread: WDL-OL
View Single Post
Old 03-21-2012, 12:35 PM   #55
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

I've been working on fixing audiounit sidechains and multiple output buses and adding the ability to label those buses.

https://github.com/olilarkin/wdl-ol/commits/buses

one thing I noticed is that logic behaves weirdly with sidechains and seems to connect the main input bus to the sidechain bus (until you connect the sidechain via the menu).

so in the sidechain example i did this hack to compare the data in the buffers, and zero the sidechain buffer if the data is the same. I suppose that could cause some problems if you wanted to send exactly the same thing to both input buses

Code:
#ifdef AU_API
  if (GetHost() == kHostLogic) 
  {
    if(!memcmp(in1, scin1, nFrames * sizeof(double)))
    {
      memset(scin1, 0, nFrames * sizeof(double));
      memset(scin2, 0, nFrames * sizeof(double));
    }
  }
#endif
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote