Example #1
0
 public static void ConvertToVersion(this IEnumerable <TagModel> seq, ID3.Version version)
 {
     foreach (var item in seq)
     {
         item.ConvertVersion(version);
     }
 }
Example #2
0
File: Lib.cs Project: MRoc/puremp3
        TagCollector TagCollectorByVersion(ID3.Version v)
        {
            if (!tagCollectors.ContainsKey(v))
            {
                tagCollectors.Add(v, new TagCollector(v));
            }

            return(tagCollectors[v]);
        }
Example #3
0
        public static bool IsVersionUnique(this IEnumerable <TagModel> seq)
        {
            ID3.Version v = null;

            foreach (var item in seq)
            {
                if (v == null)
                {
                    v = item.Version.ValueVersion;
                }
                else if (v != item.Version.ValueVersion)
                {
                    return(false);
                }
            }

            return(true);
        }
Example #4
0
        public void ConvertVersion(ID3.Version version)
        {
            Debug.Assert(CheckInvariant());

            Tag oldTag = ToTag();

            Clear();

            Tag newTag = oldTag.Clone();

            new TagVersionProcessor(version).Process(newTag);

            DocUtils.PerformAction(this, new TagConversionAction(this, oldTag, newTag));

            FromTag(tag);

            Debug.Assert(CheckInvariant());
        }
Example #5
0
 public static void ConvertToFirstVersion(this IEnumerable <TagModel> seq, ID3.Version v)
 {
     seq.ConvertToVersion(v);
 }
Example #6
0
File: Lib.cs Project: MRoc/puremp3
 public TagCollector(ID3.Version version)
 {
     Version = version;
 }