Beispiel #1
0
        public DeviceInstanceImpl(DeviceConfig devconf, DeviceClass devd, DeviceProperty devp)
            : base(devconf, devd, devp)
        {
            devp_ = devp as DevicePropertyImpl;

            sampling_timer_.Elapsed += OnSampling;
            sampling_timer_.Interval = VOICE_OUTPUT_IVAL;
        }
        public DevicePropertyEditorImpl(DevicePropertyImpl devp) : this()
        {
            devp_ = devp as DevicePropertyImpl;

            InitializeSamplingRate();
            InitializeBitsPerSample();
            InitializeChannelNum();
            InitializeConnectActionList();

            TBox_InputFilePath.Text              = devp.InputFilePath.Value;
            CBox_InputSamplingRate.SelectedItem  = (uint)devp.InputSamplingRate.Value;
            CBox_InputBitsPerSample.SelectedItem = (uint)devp.InputBitsPerSample.Value;
            CBox_InputChannelNum.SelectedItem    = devp.InputChannelNum.Value;

            Num_RepeatCount.Value           = devp.RepeatCount.Value;
            CBox_ConnectAction.SelectedItem = devp.ConnectAction.Value;
        }