Beispiel #1
0
 /// <summary>
 ///     Removes the shuffler details for a track
 /// </summary>
 /// <param name="track">The track.</param>
 public void RemoveShufflerDetails(Track track)
 {
     if (!track.IsShufflerTrack)
     {
         return;
     }
     ExtenedAttributesHelper.SaveExtendedAttributes(track.Description, new Dictionary <string, string>());
     LoadTrack(track.Filename);
 }
Beispiel #2
0
        /// <summary>
        ///     Saves the track.
        /// </summary>
        private void SaveTrack()
        {
            UpdateData();
            UpdateCurrentSample();

            AutomationAttributes.TrackSamples.Clear();
            foreach (var sample in CurrentSamples.Where(sample => sample.Length != 0 || sample.Start != 0))
            {
                AutomationAttributes.TrackSamples.Add(sample);
            }

            ExtenedAttributesHelper.SaveExtendedAttributes(Track);
            AutomationAttributesHelper.SaveAutomationAttributes(Track.Description, AutomationAttributes);
            BassPlayer.ReloadTrack(Track.Filename);

            _saved = true;

            Close();
        }