using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.IO ; using System.Windows.Forms; namespace winformFlash ...{
/**////<summary> /// 用Win32Api实现的媒体播放类.支持Mp3,wma,wmv ///</summary> class Mp3 ...{
public Mp3() ...{
} //定义API函数使用的字符串变量 [MarshalAs(UnmanagedType.ByValTStr, SizeConst =260)] privatestring Name =""; [MarshalAs(UnmanagedType.ByValTStr, SizeConst =128)] privatestring durLength =""; [MarshalAs(UnmanagedType.LPTStr, SizeConst =128)] privatestring TemStr =""; int ilong; //定义播放状态枚举变量 publicenum State ...{
mPlaying =1, mPuase =