string lameEXE = @"D:\lame3.100\lame.exe"; string lameArgs = "-b 128"; string wavFile = @"d:\d.mp3"; string mp3File = @"d:\ff.mp3"; Process process = new Process(); process.StartInfo = new ProcessStartInfo(); process.StartInfo.FileName = lameEXE; process.StartInfo.Arguments = string.Format( "{0} {1} {2}", lameArgs, wavFile, mp3File); process.Start(); process.WaitForExit(); int exitCode = process.ExitCode; Console.WriteLine(exitCode);
C#调用Lame.exe
猜你喜欢
转载自www.cnblogs.com/binlyzhuo/p/9394593.html
今日推荐
周排行