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); }
public void PlaySound(string fileName) { _soundProvider.PlaySound(fileName); }