Пример #1
0
        private void setMp3AndXml(string fileMp3)
        {
            XmlAudiobook xml = null;

            if (File.Exists(fileMp3 + ".xml"))
            {
                xml = XmlFactory.LoadFromFile <XmlAudiobook>(fileMp3 + ".xml");
            }
            logicShit.SetAudioAndMeta(fileMp3, xml);
        }
Пример #2
0
 /// <summary>
 /// Calling this puts the FSM into the Ready state
 /// </summary>
 public void SetAudioAndMeta(string lang1Mp3, XmlAudiobook lang1Xml)
 {
     Lang1Mp3 = lang1Mp3;
     Lang1Xml = lang1Xml;
     curFsm   = fsmManualSplit; // TODO: change fsm for w/o XML
     if (Lang1Xml != null)
     {
         curFsm        = fsmWithXml;
         Lang1XmlQueue = Lang1Xml.Segments;
     }
     curFsm.Goto(LogicState.Ready);
 }
Пример #3
0
 public void startRecording() {
     xml = new XmlAudiobook();
     curTime = TimeSpan.Zero;
     ttSex.Start();
     startSegment();
 }