Exemple #1
0
 public AudioEffectSound CreateAudio(string path)
 {
     AudioEffectSound player = new AudioEffectSound();
     try
     {
         AudioEffect effect = MediaSound.NewAudioEffect(path);
         player.OnLoaded(effect);
     }
     catch (Exception ex)
     {
         player.OnLoadError(ex);
     }
     return player;
 }
Exemple #2
0
        public AudioEffectSound CreateAudio(string path)
        {
            AudioEffectSound player = new AudioEffectSound();

            try
            {
                AudioEffect effect = MediaSound.NewAudioEffect(path);
                player.OnLoaded(effect);
            }
            catch (Exception ex)
            {
                player.OnLoadError(ex);
            }
            return(player);
        }