public override void OnClose() { base.OnClose(); CSound.RecordStop(); _DelayTest = null; }
public override void OnClose() { base.OnClose(); CSound.RecordStop(); _DelayTest = null; CBackgroundMusic.Disabled = false; }
private void SaveMicConfig() { if (_devices == null) { return; } CSound.RecordStop(); SetMicConfig(); if (CheckMicConfig()) { for (int p = 0; p < CSettings.MaxNumPlayer; p++) { CConfig.MicConfig[p].Channel = 0; } for (int dev = 0; dev < _devices.Length; dev++) { for (int inp = 0; inp < _devices[dev].Inputs.Count; inp++) { if (_devices[dev].Inputs[inp].PlayerChannel1 > 0) { CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel1 - 1].Channel = 1; CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel1 - 1].DeviceName = _devices[dev].Name; CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel1 - 1].DeviceDriver = _devices[dev].Driver; CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel1 - 1].InputName = _devices[dev].Inputs[inp].Name; } if (_devices[dev].Inputs[inp].PlayerChannel2 > 0) { CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel2 - 1].Channel = 2; CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel2 - 1].DeviceName = _devices[dev].Name; CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel2 - 1].DeviceDriver = _devices[dev].Driver; CConfig.MicConfig[_devices[dev].Inputs[inp].PlayerChannel2 - 1].InputName = _devices[dev].Inputs[inp].Name; } } } CConfig.SaveConfig(); } CSound.RecordStart(); }
private void CloseSong() { CSound.FadeAndStop(_CurrentStream, 0f, 0.5f); CSound.RecordStop(); if (_CurrentVideo != -1) { CVideo.VdClose(_CurrentVideo); _CurrentVideo = -1; CDraw.RemoveTexture(ref _CurrentVideoTexture); } CDraw.RemoveTexture(ref _Background); Lyrics[htLyrics(LyricMain)].Clear(); Lyrics[htLyrics(LyricSub)].Clear(); Lyrics[htLyrics(LyricMainDuet)].Clear(); Lyrics[htLyrics(LyricSubDuet)].Clear(); Lyrics[htLyrics(LyricMainTop)].Clear(); Lyrics[htLyrics(LyricSubTop)].Clear(); Texts[htTexts(TextSongName)].Text = String.Empty; }
public override void OnClose() { base.OnClose(); CSound.RecordStop(); }