用C#做一个调用API的MP3播放器.docxVIP

  • 3
  • 0
  • 约1.08万字
  • 约 9页
  • 2017-08-19 发布于河南
  • 举报
用C#做一个调用API的MP3播放器

using System;using System.Collections.Generic;using System.Text;//using System.linq;using System.Runtime.InteropServices;using System.IO;namespace Mp3Player{classMP3 {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;//定义播放状态枚举变量publicenumState { mPlaying = 1, mPuase = 2, mStop = 3 };//结构变量publicstructs

文档评论(0)

1亿VIP精品文档

相关文档