예제 #1
0
        public static string Save(Project project)
        {
            List <string> list = new List <string>();

            foreach (var sample in project.listSamples)
            {
                try
                {
                    CreateSampleFile(sample);
                }
                catch (Exception ex)
                {
                    return("Не удалось создать файл-отрезок./n" + ex.ToString());
                }
                list.Add(SampleController.Resemple(sample.SamplePath, project.path + "\\" + "result.mp3"));
                //SampleController.Combine(sample.SamplePath, path + "\\" + "result.wav");
            }
            SampleController.Concatenate(list, project.path + "\\" + "result.mp3");

            return("Сохранено");
        }