예제 #1
0
        /// <summary>
        /// Sets a crosspoint mute ex. *=everything, 1 2 3=channels 1, 2, 3,  1-6=channels 1 through 6, 1-8 !3=channels 1 through 8 except 3, * !3-5=everything but 3 through 5
        /// </summary>
        /// <param name="inputs">The input channels.</param>
        /// <param name="outputs">The output channels.</param>
        /// <param name="value">The value of the crosspoint mute.</param>
        public void SetCrossPointMute(string _inputs, string _outputs, bool _value)
        {
            SetCrossPointMute set = new SetCrossPointMute();

            set.Params         = new SetCrossPointMuteParams();
            set.Params.Name    = this.componentName;
            set.Params.Inputs  = _inputs;
            set.Params.Outputs = _outputs;
            set.Params.Value   = _value;

            this.myCore.Enqueue(JsonConvert.SerializeObject(set));
        }
예제 #2
0
        /// <summary>
        /// Sets a crosspoint mute ex. *=everything, 1 2 3=channels 1, 2, 3,  1-6=channels 1 through 6, 1-8 !3=channels 1 through 8 except 3, * !3-5=everything but 3 through 5
        /// </summary>
        /// <param name="inputs">The input channels.</param>
        /// <param name="outputs">The output channels.</param>
        /// <param name="value">The value of the crosspoint mute.</param>
        public void SetCrossPointMute(string inputs, string outputs, bool value)
        {
            SetCrossPointMute set = new SetCrossPointMute();

            set.Params         = new SetCrossPointMuteParams();
            set.Params.Name    = cName;
            set.Params.Inputs  = inputs;
            set.Params.Outputs = outputs;
            set.Params.Value   = value;

            QsysProcessor.Enqueue(JsonConvert.SerializeObject(set));
        }
예제 #3
0
        /// <summary>
        /// Sets a crosspoint mute ex. *=everything, 1 2 3=channels 1, 2, 3,  1-6=channels 1 through 6, 1-8 !3=channels 1 through 8 except 3, * !3-5=everything but 3 through 5
        /// </summary>
        /// <param name="inputs">The input channels.</param>
        /// <param name="outputs">The output channels.</param>
        /// <param name="value">The value of the crosspoint mute.</param>
        public void SetCrossPointMute(string inputs, string outputs, bool value)
        {
            if (registered)
            {
                SetCrossPointMute set = new SetCrossPointMute()
                {
                    Params = new SetCrossPointMuteParams()
                    {
                        Name = cName, Inputs = inputs, Outputs = outputs, Value = value
                    }
                };

                QsysCoreManager.Cores[coreId].Enqueue(JsonConvert.SerializeObject(set));
            }
        }