private static TagLib.File UserDefinedResolver(TagLib.File.IFileAbstraction abstraction, string mimetype, TagLib.ReadStyle style) { foreach (KeyValuePair <string, CUEToolsFormat> fmt in _config.formats) { if (fmt.Value.tagger != CUEToolsTagger.TagLibSharp && mimetype == "taglib/" + fmt.Key) { return(new File(abstraction, style, fmt.Value.tagger)); } } return(null); }
public static TagLib.File OpenFile(string file, string mimetype, TagLib.ReadStyle readStyle) { return(TagLib.File.Create(Provider.CreateDemuxVfs(file), mimetype, readStyle)); }