Beispiel #1
0
        private static ID3TagData MakeDefaultTag()
        {
            var res = new ID3TagData
            {
                Title       = "Title",
                Artist      = "Artist",
                Album       = "Album",
                Year        = "1999",
                Comment     = "Comment, standard ASCII",
                Genre       = @"Other",
                Track       = "7",
                Subtitle    = "Subtitle",
                AlbumArtist = "AlbumArtist",
            };

            res.SetUDT(new string[]
            {
                @"UDF01=Some simple ASCII text",
                @"Empty=",
            });
            return(res);
        }
Beispiel #2
0
        static void ID3Test()
        {
            ID3TagData tag = new ID3TagData
            {
                Title    = "A Test File",
                Artist   = "Microsoft",
                Album    = "Windows 7",
                Year     = "2009",
                Comment  = "Test only.",
                Genre    = LameMP3FileWriter.Genres[1],
                Subtitle = "From the Calligraphy theme",
                AlbumArt = System.IO.File.ReadAllBytes(@"disco.png")
            };

            tag.SetUDT(new[]
            {
                "udf1=First UDF added",
                "udf2=Second UDF",
                "unicode1=Unicode currency symbols: ₠ ₡ ₢ ₣ ₤ ₥ ₦ ₧ ₨ ₩ ₪ ₫"
            });

            Codec.WaveToMP3("test.wav", "test_id3.mp3", tag);
        }