public override bool UpdateGame() { for (int i = 0; i < CSettings.MaxNumPlayer; i++) { CRecord.AnalyzeBuffer(i); } _UpdateTextColors(); _SetEditVisibility(_PlayerEditActive); if (_DelayTest.Running) { _DelayTest.Update(); for (int p = 0; p < CSettings.MaxNumPlayer; ++p) { _Texts[_TextDelayPlayer[p]].Text = (_DelayTest.Delays[p] == 0) ? "––– ms" : _DelayTest.Delays[p].ToString("000") + " ms"; } } for (int p = 0; p < CSettings.MaxNumPlayer; ++p) { _ChannelEnergy[p] = CRecord.GetMaxVolume(p); _Equalizers[_EqualizerPlayer[p]].Update(CRecord.ToneWeigth(p), CRecord.GetMaxVolume(p)); } bool showWarning = !_CheckMicConfig(); _Statics[_StaticWarning].Visible = showWarning; _Texts[_TextWarning].Visible = showWarning; return(true); }
private void _UpdateEqualizers() { for (int i = 0; i < CGame.NumPlayers; i++) { CRecord.AnalyzeBuffer(i); _Equalizers[_PlayerEqualizer[i]].Update(CRecord.ToneWeigth(i), CRecord.GetMaxVolume(i)); } }
public override bool UpdateGame() { for (int i = 0; i < CSettings.MaxNumPlayer; i++) { CRecord.AnalyzeBuffer(i); } if (_DelayTest.Running) { _DelayTest.Update(); for (int p = 0; p < CSettings.MaxNumPlayer; ++p) { _Texts[_TextDelayPlayer[p]].Text = (_DelayTest.Delays[p] == 0) ? "??? ms" : _DelayTest.Delays[p].ToString("000") + " ms"; } } if (_CheckMicConfig()) { for (int p = 0; p < CSettings.MaxNumPlayer; ++p) { if (_SelectSlides[_SelectSlideRecordPlayer[p]].Selection > 0) { _ChannelEnergy[p] = CRecord.GetMaxVolume(p); _Equalizers[_EqualizerPlayer[p]].Update(CRecord.ToneWeigth(p), CRecord.GetMaxVolume(p)); } else { _ChannelEnergy[p] = 0f; _Equalizers[_EqualizerPlayer[p]].Reset(); } } } else { for (int i = 0; i < _ChannelEnergy.Length; i++) { _ChannelEnergy[i] = 0f; } for (int p = 0; p < CSettings.MaxNumPlayer; ++p) { _Equalizers[_EqualizerPlayer[p]].Reset(); } } bool showWarning = !_CheckMicConfig(); _Statics[_StaticWarning].Visible = showWarning; _Texts[_TextWarning].Visible = showWarning; return(true); }
public override bool UpdateGame() { if (_ProfilesChanged || _AvatarsChanged) { _LoadProfiles(); } for (int i = 1; i <= CGame.NumPlayers; i++) { CRecord.AnalyzeBuffer(i - 1); _Equalizers["EqualizerPlayer" + i].Update(CRecord.ToneWeigth(i - 1), CRecord.GetMaxVolume(i - 1)); } return(true); }