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; }
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); }