public void BassEngineOpenLocalMp3FileTest() { player.Play(); Assert.IsTrue(player.IsPlaying); if (player.IsPlaying) { player.Stop(); } }
private void PlayMusic(string filePath) { this.LoadMusicFile(this.SoundSource); bassPlayer.Play(); timer.Start(); }
public static void Play() { AppPropertys.mainWindow.Dispatcher.BeginInvoke( new Action(() => { bassEng.Play(); DT.Start(); AppPropertys.mainWindow.playListBox.ScrollIntoView(CurrentSong); AppPropertys.mainWindow.playListBox.SelectedIndex = PlayIndex; string notifyIconText = "正在播放:" + CurrentSong.ArtSong; AppPropertys.notifyIcon.Text = notifyIconText.Length >= 64?notifyIconText.Substring(0, 63):notifyIconText; if (AppPropertys.mainWindow.isPPTPlaying) { AppPropertys.mainWindow.PlayPPT(CurrentSong); } LrcController.SetPause(); ShowTip(); }) ); }