Beispiel #1
0
 public override void Dispose()
 {
     if (proxy != null)
     {
         proxy.Stop();
         proxy = null;
     }
     BassMusicPlayer.Player.Dispose();
 }
Beispiel #2
0
        public override bool Play(string filePath)
        {
            if (BassMusicPlayer.BassFreed)
            {
                BassMusicPlayer.Player.InitBass();
            }
            proxy = new AudioProxy(audioStream);
            proxy.Start();
            string proxyUrl = proxy.GetProxyUrl(filePath);

            return(BassMusicPlayer.Player.Play(proxyUrl));
        }