I am doing an Audio editor, my recording is working but im not being able to start the timer and stop it when the recording is on. I got this so far
private void Record()
{
mciSendString("Open new type waveaudio alias Sound", null, 0, 0);
mciSendString("Record Sound", null, 0, 0)
this.Rectimer.Enabled = true;
Status_Label.Text = "Recording.....";
}
private void StopRecording()
{
mciSendString("pause Sound", null, 0, 0);
this.Rectimer.Enabled = false;
Status_Label.Text = "Stop Recording.....";
}
im using one components which is the RecTimer
private void Rectimer_Tick(object sender, EventArgs e)
{
int TimeRec = (MicRec.IsRecording);
this.lbl_timeControl.Text = string.Format("{0}", DisplayTime(Sp.PositionInMS));
}
private string DisplayTime(int ch)
{
DateTime ry = new DateTime((long) 1000);
return ry.ToString("T");
}
What is my error there that is no enabling me to start the timer when the recording starts?
Thanks in advance guys