Example #1
0
 private void Play(string data)
 {
     status = Status.WAITING;
     Task.Factory.StartNew(() =>
     {
         if (isPlaying)
         {
             Stop();
         }
         Console.WriteLine(data);
         radio = new Radio(data);
         audio = new Audio();
         audio.onWaveProviderCreated += audio_onWaveProviderCreated;
         radio.OnStreamUpdate += radio_OnStreamUpdate;
         radio.Start();
         isPlaying = true;
     });
 }