Beispiel #1
0
 public string Play(PlayData data)
 {
     if (data.Enqueue && audioFramework.IsPlaying)
     {
         audioFramework.PlaylistManager.Enqueue(data);
     }
     else
     {
         var result = audioFramework.StartResource(data);
         if (result != AudioResultCode.Success)
         {
             return($"The resource could not be played ({result}).");
         }
     }
     return(null);
 }