Exemple #1
0
 /// <summary>
 /// Handles playing of <see cref="ActionSound"/>s.
 /// </summary>
 private async void OnSoundPlayed(object sender, ActionSound sound)
 {
     if (!await _interopSounds.Play(sound))
     {
         Console.WriteLine($"ERROR '{nameof(InteropSounds)}':Could not play sound: {sound}");
     }
 }
 /// <summary>
 /// Handles playing of <see cref="ActionSound"/>s.
 /// </summary>
 private async void OnSoundPlayed(object sender, ActionSound sound)
 {
     await _interopSounds.Play(sound.ToString().ToLowerInvariant());
 }