在哪里可以找到 taglib-sharp 支持的所有音频文件类型的列表?

发布于 2024-11-07 10:31:07 字数 469 浏览 3 评论 0原文

我不知道为什么这对我来说很难找到,但我根本找不到任何关于此的文档。我只是想确保支持 taglib-sharp 可以使用的所有音频文件类型并排除所有其他类型。

我所能找到的只是源代码的链接,我真的不想为了这么简单的问题而深入研究它。谢谢。

顺便问一下,“官方”网站在哪里?

编辑:经过更多的研究,看起来我能找到的最佳答案是在文件类文档中:

http://taglib-sharp.sourcearchive.com/documentation/2.0.3.7plus-pdfsg/classTagLib_1_1File.html

我真的在寻找支持的音频文件列表扩展,但这几乎满足了我的需要。

I don't know why this is so hard for me to find, but I simply can't find any documentation on this. I just want to be sure I include support for all audio file types that taglib-sharp can work with and exclude all others.

All I've been able to find is a link to the source code and I really don't want to dig through it for such a simple question. Thanks.

By the way, where is the "official" website?

EDIT: After a little more research, it looks like the best answer I can find is in the file class documentation here:

http://taglib-sharp.sourcearchive.com/documentation/2.0.3.7plus-pdfsg/classTagLib_1_1File.html

I was really looking for a list of supported audio file extensions, but this pretty much gives me what I need.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯然#的苍凉 2024-11-14 10:31:07

您可以通过在代码中搜索以下字符串来获取 mime 类型和扩展名的准确列表: SupportedMimeType

您将看到 Mpeg.AudioFile 的以下内容。第一个参数是 mime 类型,第二个参数(如果设置)是扩展名。

[SupportedMimeType("taglib/mp3", "mp3")]
[SupportedMimeType("audio/x-mp3")]
[SupportedMimeType("application/x-id3")]
[SupportedMimeType("audio/mpeg")]
[SupportedMimeType("audio/x-mpeg")]
[SupportedMimeType("audio/x-mpeg-3")]
[SupportedMimeType("audio/mpeg3")]
[SupportedMimeType("audio/mp3")]
[SupportedMimeType("taglib/m2a", "m2a")]
[SupportedMimeType("taglib/mp2", "mp2")]
[SupportedMimeType("taglib/mp1", "mp1")]
[SupportedMimeType("audio/x-mp2")]
[SupportedMimeType("audio/x-mp1")]
public class AudioFile : TagLib.NonContainer.File

You can get the exact list of mime-types and extensions by searching the code for the following string: SupportedMimeType

You'll see the following for Mpeg.AudioFile. The first parameter is the mime-type, and the second, if set, is the extension.

[SupportedMimeType("taglib/mp3", "mp3")]
[SupportedMimeType("audio/x-mp3")]
[SupportedMimeType("application/x-id3")]
[SupportedMimeType("audio/mpeg")]
[SupportedMimeType("audio/x-mpeg")]
[SupportedMimeType("audio/x-mpeg-3")]
[SupportedMimeType("audio/mpeg3")]
[SupportedMimeType("audio/mp3")]
[SupportedMimeType("taglib/m2a", "m2a")]
[SupportedMimeType("taglib/mp2", "mp2")]
[SupportedMimeType("taglib/mp1", "mp1")]
[SupportedMimeType("audio/x-mp2")]
[SupportedMimeType("audio/x-mp1")]
public class AudioFile : TagLib.NonContainer.File
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文