Beispiel #1
0
        public void Initialize(string name, ushort input, ushort output)
        {
            cName  = name;
            Input  = input;
            Output = output;

            Component component = new Component();

            component.Name = cName;
            crossName      = string.Format("input_{0}_output_{1}_mute", input, output);
            List <ControlName> names = new List <ControlName>()
            {
                new ControlName {
                    Name = crossName
                }
            };

            component.Controls = names;

            if (QsysProcessor.RegisterComponent(component))
            {
                QsysProcessor.Components[component].OnNewEvent += new EventHandler <QsysInternalEventsArgs>(QsysMatrixMixerSimpl_OnNewEvent);

                registered = true;
            }

            mixer = new QsysMatrixMixer(cName);
        }
        public void Initialize(string coreId, string name, ushort input, ushort output)
        {
            QsysCoreManager.CoreAdded += new EventHandler <CoreAddedEventArgs>(QsysCoreManager_CoreAdded);

            cName       = name;
            this.coreId = coreId;
            Input       = input;
            Output      = output;
            crossName   = string.Format("input_{0}_output_{1}_mute", input, output);

            mixer = new QsysMatrixMixer();
            mixer.Initialize(coreId, name);

            if (!registered)
            {
                RegisterWithCore();
            }
        }
Beispiel #3
0
 public void Initialize(ushort _coreID, SimplSharpString _namedComponent, ushort _input, ushort _output)
 {
     this.mixer = new QsysMatrixMixer((int)_coreID, _namedComponent.ToString(), _input, _output);
     this.mixer.QsysMatrixMixerEvent += new EventHandler <QsysEventsArgs>(matrix_QsysMatrixMixerEvent);
 }