//public void pauseRecording() { // commitSegment(); // curSegment = null; //} public void stopRecording() { //commitSegment(); ttSex.Stop(); recMan.StopRecording(); recMan.DisposeOfLastRecording(); curSegment = null; FireHandler(RecStopped); FireSegmentTimeUpdatedBasedOnCurrentSituation(); }
private void startSegment() { recMan.StartRecording(); CurSegment = new XmlWavEvent() { //TimeIn = curTime, Filename = string.Format(FilenameFormat, segmentId), Type = WavEventType.WavRecording2, }; }
private void startSegment() { whenLastSegmentStarted = DateTime.Now; recMan.StartRecording(); curSegment = new XmlWavEvent() { Type = WavEventType.WavRecording1, Filename = string.Format(FilenameFormat, xml.Segments.Count), TimeIn = curTime, }; FireHandler(CurSegmentUpdated); FireSegmentTimeUpdatedBasedOnCurrentSituation(); }
private void nextLang1Phrase_manual() { Lang1CurSegment = new XmlWavEvent { Filename = IlyaXml.Lang1Mp3Filename, TimeIn = ManualSegmentA, TimeOut = ManualSegmentB, Type = WavEventType.Mp3Segment }; if (Lang1CurSegment != null) { CurIlyaSentence = new XmlIlyaSentence(); CurIlyaSentence.Lang1Segments.Add(Lang1CurSegment); CurIlyaParagraph.Sentences.Add(CurIlyaSentence); RecordedSegments = CurIlyaSentence.Lang2Segments; } }