コード例 #1
0
        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()));
        }
コード例 #2
0
        public static FileInfo GetAudioFile(string filename)
        {
            var source = PathHelper.GetTestAudioFile(filename);

            return(source);
        }