private void saveTheShit() { var fff = new SaveFileDialog() { //CheckFileExists = true, Filter = "WAV|*.wav", }; var result = fff.ShowDialog(); if (result != DialogResult.OK) { return; } LastFolder = Path.GetDirectoryName(fff.FileName); // save xml logicShit.cleanUpFilenames(fff.FileName); XmlFactory.WriteToFile <XmlAudiobook>(logicShit.AudiobookXml, fff.FileName + ".xml"); // save wav AudiobookerMp3Utils.SaveMusicMp3ToSegmentedFile(fff.FileName, logicShit.AudiobookXml); UtilsCore.OpenWinExplorerAndSelectThisFile(fff.FileName); }
private void saveTheShit() { var fff = new SaveFileDialog() { //CheckFileExists = true, Filter = "WAV|*.wav", }; var result = fff.ShowDialog(); if (result != DialogResult.OK) { return; } LastFolder = Path.GetDirectoryName(fff.FileName); // save xml logicShit.cleanUpFilenames(fff.FileName); XmlFactory.WriteToFile <XmlIlyaFrankAbook>(logicShit.IlyaXml, fff.FileName + ".xml"); // save wav AudiobookerMp3Utils.InterleaveAndSaveIlyaFrankerMp3( fff.FileName, logicShit.IlyaXml, (Settings.Default.SpeechChange1 != 0) ? (double?)Settings.Default.SpeechChange1 : null, (Settings.Default.SpeechChange2 != 0) ? (double?)Settings.Default.SpeechChange2 : null, Settings.Default.FlipLanguages, (progress) => { progressBar.Value = (int)progress; }); }
public static void WriteFrankerBook(string fnameXml, string fnameOut, double?speed1, double?speed2) { var xml = XmlFactory.LoadFromFile <XmlIlyaFrankAbook>(fnameXml); AudiobookerMp3Utils.InterleaveAndSaveIlyaFrankerMp3(fnameOut, xml, speed1, speed2, false); }