Beispiel #1
0
 public static AudioStream CreateAudioStream(Path path, string label, MPDSongResponseBlock block)
 {
     AudioStream result = new AudioStream(path, label);
     result.Title = block.Title;
     result.Name = block.Name;
     return result;
 }
Beispiel #2
0
        private void OnAddStreamNameOverlayReturned(bool ok, string input)
        {
            string label = input.Trim();

            if (ok && label.Length > 0)
            {
                string pathString = m_Overlay.Data as string;
                AudioStream stream = new AudioStream(new Path(pathString), label);
                DataModel.StreamsCollection.Add(stream);
            }

            m_Overlay.Deactivate();
        }