private void processFrame(int count, WaveFormat format) { if (!Bypass) { SignalProcess.Process(new float[][] { leftData, rightData }, count); } if (LeftOut != null) { LeftOut.RaiseBufferReady(new RoutingEventArgs { Count = count, Buffer = leftData, Format = format, Index = 0 }); } if (RightOut != null) { RightOut.RaiseBufferReady(new RoutingEventArgs { Count = count, Buffer = rightData, Format = format, Index = 1 }); } leftData = null; rightData = null; }
private void input_ReceivedData(object sender, RoutingEventArgs e) { if (!Bypass) { SignalProcess.Process(new float[][] { e.Buffer }, e.Count); } if (CentreOut != null) { CentreOut.RaiseBufferReady(new RoutingEventArgs { Buffer = e.Buffer, Count = e.Count, Format = format, Index = 0 }); } }