Пример #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;
 }