示例#1
0
 public static void Play(this string @string, ISoundProvider sound, uint duration)
 {
     foreach (var n in from n in @string
                       select (Notes)Enum.Parse(typeof(Notes), n.ToString()))
         sound.PlaySound(Pitch.GetFrequencyFor(n), duration);
 }
示例#2
0
 public void PlaySound(string fileName)
 {
     _soundProvider.PlaySound(fileName);
 }