确定VB.net中mp3文件的长度(以毫秒为单位) [英] Determine the length (in milliseconds) of an mp3 file in VB.net
本文介绍了确定VB.net中mp3文件的长度(以毫秒为单位)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以在VB.net中获取mp3的时间长度?我有TagLib,但似乎没有任何功能.
Is there a way to get the time length of an mp3 in VB.net? I have TagLib, but it doesn't seem to have any functionality for it.
推荐答案
我认为您正在寻找TagLib.File.Properties.Duration,它返回一个TimeSpan对象.从那里,您可以使用TotalSeconds来获取mp3的长度(以秒为单位).
I think you are looking for the TagLib.File.Properties.Duration, which returns a TimeSpan object. From there you can use TotalSeconds to get the length of the mp3 in seconds.
这篇关于确定VB.net中mp3文件的长度(以毫秒为单位)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文