示例#1
0
 public void Puase()
 {
     this.TemStr   = "";
     this.TemStr   = this.TemStr.PadLeft(128, Convert.ToChar(" "));
     this.ilong    = APIClass.mciSendString("pause media", this.TemStr, this.TemStr.Length, 0);
     this.mc.state = Mp3Player.State.mPuase;
 }
示例#2
0
 public void play()
 {
     this.TemStr = "";
     this.TemStr = this.TemStr.PadLeft(127, Convert.ToChar(" "));
     APIClass.mciSendString("play media", this.TemStr, this.TemStr.Length, 0);
     this.mc.state = Mp3Player.State.mPlaying;
 }
示例#3
0
 public void StopT()
 {
     this.TemStr   = "";
     this.TemStr   = this.TemStr.PadLeft(128, Convert.ToChar(" "));
     this.ilong    = APIClass.mciSendString("close media", this.TemStr, 128, 0);
     this.ilong    = APIClass.mciSendString("close all", this.TemStr, 128, 0);
     this.mc.state = Mp3Player.State.mStop;
 }