/// <summary> /// 播放解析后的信号 /// </summary> public void Play(MusicInfo mi) { if (isStart) { return; } if (CadenceSigns == null || CadenceSigns.Length <= 0) { Load(mi); } ///Res/Musics/xiaji.wma //meMusic.Stop(); meMusic.AutoPlay = false; if (mi.IsDefault) { meMusic.Source = new Uri(CommHelper.MusicBasePath + mi.Key, UriKind.Relative); } else { meMusic.SetSource(CommHelper.GetMusicStream(mi.Key)); } //主线程界面刷新器 dtWindows.Interval = new TimeSpan(0, 0, 0, 0, 10); dtWindows.Tick += new EventHandler(dtWindows_Tick); dtWindows.Start(); //辅助线程 logicThread = new Timer(dtWindows_Tick_BG, null, 0, 500); isStart = true; }