- 授权协议: LGPL
- 开发语言: C/C++ Python Ruby
- 操作系统: Linux
- 软件首页: http://code.google.com/p/libmtag/
软件介绍
libmtag 是一个 C 语言库用来获取 MP3、OGG 和 Flac 文件的元信息。同时也提供 Python 和 Ruby 语言绑定的版本。
示例代码:
C
mtag_file_t *file;
mtag_tag_t *tag;
file = mtag_file_new("song.mp3");
tag = mtag_file_tag(file);
printf(”%s - %s\n”, mtag_tag_get(tag, “artist”), mtag_tag_get(tag, “title”));
mtag_tag_set(tag, "artist", "foo");
mtag_file_save(file);
mtag_file_free(file);
Ruby
file = MTag::File.new(fn)
print(”%s - %s\n” % [file.tag.artist, file.tag.title])
file.tag.artist = "foo"
file.save
Python
file = libmtag.File(fn)
print "%s - %s" % (file.tag().get("artist"), file.tag().get("title"))
file.tag().set("artist", "foo")
file.save()
Algorithms + Data Structures = Programs
Niklaus Wirth / Prentice Hall / 1975-11-11 / GBP 84.95
It might seem completely dated with all its examples written in the now outmoded Pascal programming language (well, unless you are one of those Delphi zealot trying to resist to the Java/.NET dominanc......一起来看看 《Algorithms + Data Structures = Programs》 这本书的介绍吧!
