public static IAudioUtility GetAudioUtilityFfmpeg()
        {
            var ffmpegExe  = PathHelper.GetExe(AppConfigHelper.FfmpegExe);
            var ffprobeExe = PathHelper.GetExe(AppConfigHelper.FfprobeExe);

            var ffmpeg = new FfmpegAudioUtility(ffmpegExe, ffprobeExe);

            return(ffmpeg);
        }
        public static IAudioUtility GetAudioUtility()
        {
            var ffmpegExe = new FileInfo(AppConfigHelper.FfmpegExe);

            var ffmpeg       = new FfmpegAudioUtility(ffmpegExe, new FileInfo(AppConfigHelper.FfprobeExe));
            var ffmpegRawPcm = new FfmpegRawPcmAudioUtility(ffmpegExe);
            var mp3Splt      = new Mp3SpltAudioUtility(new FileInfo(AppConfigHelper.Mp3SpltExe));
            var wvunpack     = new WavPackAudioUtility(new FileInfo(AppConfigHelper.WvunpackExe));
            var sox          = new SoxAudioUtility(new FileInfo(AppConfigHelper.SoxExe));

            return(new MasterAudioUtility(ffmpeg, mp3Splt, wvunpack, sox, ffmpegRawPcm, PathHelper.GetTempDir()));
        }
Esempio n. 3
0
        public static IAudioUtility GetAudioUtility()
        {
            var ffmpegExe = new FileInfo(AppConfigHelper.FfmpegExe);

            var ffmpeg       = new FfmpegAudioUtility(ffmpegExe, AppConfigHelper.FfprobeExe.ToFileInfo());
            var ffmpegRawPcm = new FfmpegRawPcmAudioUtility(ffmpegExe);

            var wvunpack        = AppConfigHelper.WvunpackExe;
            var wvunpackUtility = wvunpack != null ? new WavPackAudioUtility(wvunpack.ToFileInfo()) : null;

            var sox = new SoxAudioUtility(AppConfigHelper.SoxExe.ToFileInfo());

            return(new MasterAudioUtility(ffmpeg, wvunpackUtility, sox, ffmpegRawPcm, PathHelper.GetTempDir()));
        }