예제 #1
0
 public void EnrichCurrentTrack([NotNull] ContextTrack track)
 {
     if (_isPlayingQueue)
     {
         var b = _state.ConnectState.Track;
         ProtoUtils.EnrichTrack(b, track);
     }
     else
     {
         int index   = (int)GetCurrentTrackIndex();
         var current = Tracks[index];
         ProtoUtils.EnrichTrack(current, track);
         Tracks[index]             = current;
         _state.ConnectState.Track = ProtoUtils.ConvertToProvidedTrack(current);
     }
 }