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; }
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; }
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; }