我在哪里可以找到标记库尖锐的例子吗? [英] Where can I find tag lib sharp examples?

查看:98
本文介绍了我在哪里可以找到标记库尖锐的例子吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找的ID3编辑我的音乐经理的项目。看来,的taglib锐是受欢迎的选择。我用Google搜索了很多,但没有找到使用它的任何实例。

I have been searching for ID3 editors for my music manager project. It seems that taglib sharp is the popular choice. I googled a lot and could not find any examples of using it.

有人能指出我的一些例子显示库的使用?

Can some one point me to some examples showing the library usage ?

推荐答案

良好,没有确切知道你想要做的一切我能提供的是什么我的code。

Well without knowing exactly what you want to do all I can offer is my code.

您创建从实际的mp3文件中的标签库 File对象。这种读取文件并提取标签数据:

You create a TagLib File object from the actual mp3 file. This reads the file and extracts the tag data:

TagLib.File tagFile = TagLib.File.Create(track); // track is the name of the mp3

然后得到一个标记值:

Then to get a tag value:

uint year = tagFile.Tag.Year;

您设置的标签是这样的:

You set the tags like this:

tagFile.Tag.Year = year;

,然后保存更改:

and then save the changes:

tagFile.Save();

这篇关于我在哪里可以找到标记库尖锐的例子吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆