private void _UpdateDevices() { _DeviceNr = -1; _Devices = CRecord.GetDevices(); if (_Devices != null) { _DeviceNr = 0; foreach (CRecordDevice device in _Devices) { _SelectSlides[_EditSelectSlideRecordDevices].AddValue(device.Name); } _SelectSlides[_EditSelectSlideRecordDevices].Selection = _DeviceNr; _UpdateChannels(); } }
public override void OnShow() { base.OnShow(); _SelectSlides[_SelectSlideRecordDevices].Clear(); for (int i = 0; i < _ChannelEnergy.Length; i++) { _ChannelEnergy[i] = 0f; } _DeviceNr = -1; _Devices = CRecord.GetDevices(); if (_Devices != null) { _DeviceNr = 0; _GetFirstConfiguredRecordDevice(ref _DeviceNr); foreach (CRecordDevice device in _Devices) { _SelectSlides[_SelectSlideRecordDevices].AddValue(device.Name); } _SelectSlides[_SelectSlideRecordDevices].Selection = _DeviceNr; _UpdateChannels(); } for (int p = 0; p < CSettings.MaxNumPlayer; ++p) { _SelectSlides[_SelectSlideRecordPlayer[p]].Visible = _Devices != null; } _Statics[_StaticWarning].Visible = false; _Texts[_TextWarning].Visible = false; _DelayTest.Reset(); _SelectSlides[_SelectSlideDelay].Selection = CConfig.Config.Record.MicDelay / 20; }