예제 #1
0
 public SongPlayerSound CreateSong(string path)
 {
     SongPlayerSound player = new SongPlayerSound();
     try
     {
         SongPlayer song = MediaSound.NewSongPlayer(path);
         player.OnLoaded(song);
     }
     catch(Exception ex)
     {
         player.OnLoadError(ex);
     }
     return player;
 }
예제 #2
0
파일: Audio.cs 프로젝트: zx8326123/LGame
        public SongPlayerSound CreateSong(string path)
        {
            SongPlayerSound player = new SongPlayerSound();

            try
            {
                SongPlayer song = MediaSound.NewSongPlayer(path);
                player.OnLoaded(song);
            }
            catch (Exception ex)
            {
                player.OnLoadError(ex);
            }
            return(player);
        }