Esempio n. 1
0
 public static void StoreRating(int rating, TagLib.File to_file)
 {
     if ((to_file.Tag.TagTypes & TagLib.TagTypes.Id3v2) != 0)
     {
         ID3v2Tagger.StoreRating(rating, to_file);
     }
     if ((to_file.Tag.TagTypes & TagLib.TagTypes.Xiph) != 0)
     {
         OggTagger.StoreRating(rating, to_file);
     }
 }
Esempio n. 2
0
 public static void StorePlayCount(int playcount, TagLib.File to_file)
 {
     if ((to_file.Tag.TagTypes & TagLib.TagTypes.Id3v2) != 0)
     {
         ID3v2Tagger.StorePlayCount(playcount, to_file);
     }
     if ((to_file.Tag.TagTypes & TagLib.TagTypes.Xiph) != 0)
     {
         OggTagger.StorePlayCount(playcount, to_file);
     }
 }
Esempio n. 3
0
 public static void GetRatingAndPlayCount(TagLib.File from_file,
                                          ref int rating, ref int playcount)
 {
     if ((from_file.Tag.TagTypes & TagLib.TagTypes.Id3v2) != 0)
     {
         ID3v2Tagger.GetRatingAndPlayCount(from_file,
                                           ref rating, ref playcount);
     }
     if ((from_file.Tag.TagTypes & TagLib.TagTypes.Xiph) != 0)
     {
         OggTagger.GetRatingAndPlayCount(from_file,
                                         ref rating, ref playcount);
     }
 }