Exemplo n.º 1
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")
            };

            Codec.WaveToMP3("test.wav", "test_id3.mp3", tag);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 static void TranscodingTest()
 {
     Codec.WaveToMP3("test.wav", "test1.mp3");
     Codec.MP3ToWave("test1.mp3", "test.wav");
 }