コード例 #1
0
        private void _SaveMicConfig()
        {
            if (_Devices == null)
            {
                return;
            }

            CRecord.Stop();

            if (_CheckMicConfig())
            {
                for (int p = 0; p < CConfig.Config.Record.MicConfig.Length; p++)
                {
                    CConfig.Config.Record.MicConfig[p].Channel = 0;
                }

                foreach (CRecordDevice device in _Devices)
                {
                    for (int ch = 0; ch < (uint)device.Channels; ++ch)
                    {
                        if (device.PlayerChannel[ch] > 0)
                        {
                            CConfig.Config.Record.MicConfig[device.PlayerChannel[ch] - 1].Channel      = ch + 1;
                            CConfig.Config.Record.MicConfig[device.PlayerChannel[ch] - 1].DeviceName   = device.Name;
                            CConfig.Config.Record.MicConfig[device.PlayerChannel[ch] - 1].DeviceDriver = device.Driver;
                        }
                    }
                }
                CConfig.SaveConfig();
            }
            CRecord.Start();
        }
コード例 #2
0
        public override void OnClose()
        {
            base.OnClose();
            CRecord.Stop();

            _DelayTest.Reset();
        }
コード例 #3
0
 public override void OnClose()
 {
     base.OnClose();
     CRecord.Stop();
 }