delphi2007 教程

delphi2007 教程

首页 新随笔 联系 聚合 管理
  1013 Posts :: 0 Stories :: 28 Comments :: 0 Trackbacks
请教:用mediaplayer查wma的长度,timeformat设为tfmsf,tfframes,tfmilliseconds后,为什么得到的值都是一样的? Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiMultimedia/html/delphi_20061109202822165.html
mp.TimeFormat:=tfMilliseconds;  
      mp.FileName:='c:\001.wma';  
      mp.Open;  
      showmessage(inttostr(mp.Length));  
   
      mp.TimeFormat:=tfMSF;  
      showmessage(inttostr(mp.Length));  
   
      mp.TimeFormat:=tfFrames;  
      showmessage(inttostr(mp.Length));  
   
  我用上述代码查001.wma的长度,同样一个文件,为什么得到同样的值呢?  
   
 
posted on 2008-11-05 09:37 delphi2007 阅读(336) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。