libmtag

码农软件 · 软件分类 · 多媒体处理 · 2019-09-15 11:13:38

软件介绍

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()

本文地址:https://codercto.com/soft/d/14641.html

Algorithms + Data Structures = Programs

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》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具