示例#1
0
 public void BassEngineOpenLocalMp3FileTest()
 {
     player.Play();
     Assert.IsTrue(player.IsPlaying);
     if (player.IsPlaying)
     {
         player.Stop();
     }
 }
示例#2
0
        private void PlayMusic(string filePath)
        {
            this.LoadMusicFile(this.SoundSource);

            bassPlayer.Play();

            timer.Start();
        }
示例#3
0
        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();
            })
                );
        }