Example #1
0
        public void Start(string path)
        {
            AudioPlayer player = new AudioPlayer(path);

            player.Completed += PlayerCompleted;
            player.Name = Path.GetFileNameWithoutExtension(path);
            lock (m_AudioPlayers)
            {
                m_AudioPlayers.Add(player);
            }
            player.Start();
        }
Example #2
0
 public string Get(string method)
 {
     //Program.PlayStuff();
     switch (method)
     {
         case "play":
             s_Player = new AudioPlayer(@"d:\dropbox\105ww\Jingles and Jungles\C105 Weekend Waffle Sung A.mp3");
             s_Player.Start();
             break;
         case "stop":
             if (s_Player != null)
                 s_Player.Stop();
             break;
     }
     return "Hello worldzz";
 }