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

            bassPlayer.Play();

            timer.Start();
        }
Exemplo n.º 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();
            })
                );
        }