Exemple #1
0
 public static void StoreRatingAndPlayCount(int rating, int playcount,
                                            TagLib.File to_file)
 {
     if ((to_file.Tag.TagTypes & TagLib.TagTypes.Id3v2) != 0)
     {
         ID3v2RatingTagger.StoreRatingAndPlayCount(rating, playcount,
                                                   to_file);
     }
     if ((to_file.Tag.TagTypes & TagLib.TagTypes.Xiph) != 0)
     {
         OggRatingTagger.StoreRatingAndPlayCount(rating, playcount,
                                                 to_file);
     }
 }
Exemple #2
0
 public static void GetRatingAndPlayCount(TagLib.File from_file,
                                          ref int rating, ref int playcount)
 {
     if ((from_file.Tag.TagTypes & TagLib.TagTypes.Id3v2) != 0)
     {
         ID3v2RatingTagger.GetRatingAndPlayCount(from_file,
                                                 ref rating, ref playcount);
     }
     if ((from_file.Tag.TagTypes & TagLib.TagTypes.Xiph) != 0)
     {
         OggRatingTagger.GetRatingAndPlayCount(from_file,
                                               ref rating, ref playcount);
     }
 }