Exemplo n.º 1
0
        public static TagLib.Tag FileTagReader(Stream stream, string fileName)
        {
            //Create a simple file and simple file abstraction
            var simpleFile            = new SimpleFile(fileName, stream);
            var simpleFileAbstraction = new SimpleFileAbstraction(simpleFile);
            /////////////////////

            //Create a taglib file from the simple file abstraction
            var mp3File = TagLib.File.Create(simpleFileAbstraction);

            //Get all the tags
            TagLib.Tag tags = mp3File.Tag;


            mp3File.Dispose();

            //Return the tags
            return(tags);
        }
Exemplo n.º 2
0
 public SimpleFileAbstraction(SimpleFile file)
 {
     this.file = file;
 }