Ejemplo n.º 1
0
        protected void ConstructNonSerializableMembers()
        {
            this.sendEventsToHostTrigger = new SendMssEventsToHostTrigger();
            this.paramMsgHandler = new ParameterMsgHandler();
            this.dryMssEventHandler = new DryMssEventHandler();

            this._dryMssEventRelay = new DryMssEventRelay();
            this._wetMssEventRelay = new WetMssEventRelay();
            this._hostInfoRelay = new HostInfoRelay();

            this.mssEventGenrator = new MssEventGenerator();
            this._mssParameters = new MssParameters();
            this.msgEntryMetadataFactory = new Factory_MssMsgRangeEntryMetadata();
            this.msgInfoFactory = new Factory_MssMsgInfo();
            this.transformPresetMgr = new TransformPresetMgr();
            this.eventLogger = new EventLogger();
        }
Ejemplo n.º 2
0
        public void Init()
        {
            this.numDryEventsReceivedByRelay = 0;
            this.sampleRate = DEFAULT_SAMPLE_RATE;

            DryMssEventRelay dryMssEventRelay = new DryMssEventRelay();
            dryMssEventRelay.DryMssEventRecieved += new DryMssEventRecievedEventHandler(dryMssEventInputPort_DryMssEventRecieved);
            this.dryMssEventInputPort = dryMssEventRelay;

            this.wetMssEventOutputPort = new WetMssEventRelay();

            HostInfoRelay hostInfoRelay = new HostInfoRelay();
            hostInfoRelay.StartUpdate();
            hostInfoRelay.ReceiveSampleRateDuringUpdate(this.sampleRate);
            hostInfoRelay.FinishUpdate();
            this.hostInfoOutputPort = hostInfoRelay;
        }