void X32_OnMeter(object sender, OSCPacket packet) { int meter = Convert.ToInt32(packet.Nodes[2]); switch (meter) { case 1: this.BeginInvoke(new ThreadSafeOSC(UpdateMeter), packet.ToParams()); break; case 14: this.BeginInvoke(new ThreadSafeOSC(UpdateMeter), packet.ToParams()); break; case 15: this.BeginInvoke(new ThreadSafeOSC(UpdateMeter), packet.ToParams()); break; default: break; } }
private void OnChannelFade(object sender, OSCPacket packet) { this.BeginInvoke(new ThreadSafeOSC(ThreadSafeOnChannelFade), packet.ToParams()); }