public static IAudioUtility GetAudioUtilityFfmpegRawPcm() { var ffmpegExe = PathHelper.GetExe(AppConfigHelper.FfmpegExe); var ffmpeg = new FfmpegRawPcmAudioUtility(ffmpegExe); 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())); }
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())); }