获取声音文件长度 [英] Get sound file length
本文介绍了获取声音文件长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
我想获得声音文件MediaElement,MediaPlayer的长度
befor使用它(打开,播放)任何人都可以帮我..
谢谢
hello everyone .
I am tying to get length of sound file, MediaElement ,MediaPlayer
befor use it (open,play) can anyone help me please ..
Thank you
推荐答案
您可以在文件的标题中找到该信息.每种格式的标头都可以不同,但幸运的是,这些格式都有详细记录.请查看下面的链接以获取更多信息:
http://www.wotsit.org/list.asp?fc=12 [ ^ ]
祝你好运!
You can find that information in the header of the file. This header can be different for each format but luckily those formats are well documented. Have a look at the link below for more info:
http://www.wotsit.org/list.asp?fc=12[^]
Good luck!
这可能在c#中不在Windows中:mad:
this may in c# not in windows :mad:
这篇关于获取声音文件长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文