Exemple #1
0
        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;
            }
        }
Exemple #2
0
 private void OnChannelFade(object sender, OSCPacket packet)
 {
     this.BeginInvoke(new ThreadSafeOSC(ThreadSafeOnChannelFade), packet.ToParams());
 }