コード例 #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 OnShow()
        {
            base.OnShow();
            CRecord.Start();

            _NameSelections[_NameSelection].Init();
            _LoadProfiles();
            _SelectElement(_Buttons[_ButtonStart]);
        }