Browse Source
Attempt to remove need for vgmstream as ffmpeg seems to be able to handle everything
master
0.4
Abheek D
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
16 deletions
-
UsmToolkit/Commands.cs
|
@ -109,22 +109,6 @@ namespace UsmToolkit |
|
|
var audioFormat = usmStream.FinalAudioExtension; |
|
|
var audioFormat = usmStream.FinalAudioExtension; |
|
|
var pureFileName = Path.GetFileNameWithoutExtension(usmStream.FilePath); |
|
|
var pureFileName = Path.GetFileNameWithoutExtension(usmStream.FilePath); |
|
|
|
|
|
|
|
|
if (audioFormat == ".adx") |
|
|
|
|
|
{ |
|
|
|
|
|
//ffmpeg can not handle .adx from 0.2 for whatever reason
|
|
|
|
|
|
//need vgmstream to format that to wav
|
|
|
|
|
|
if (!Directory.Exists("vgmstream")) |
|
|
|
|
|
{ |
|
|
|
|
|
Console.WriteLine("ERROR: vgmstream folder not found!"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("adx audio detected, convert to wav..."); |
|
|
|
|
|
Helpers.ExecuteProcess("vgmstream/test.exe", $"\"{Path.ChangeExtension(usmStream.FilePath, usmStream.FinalAudioExtension)}\" -o \"{Path.ChangeExtension(usmStream.FilePath, "wav")}\""); |
|
|
|
|
|
|
|
|
|
|
|
usmStream.FinalAudioExtension = ".wav"; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Helpers.ExecuteProcess("ffmpeg", Helpers.CreateFFmpegParameters(usmStream, pureFileName, OutputDir)); |
|
|
Helpers.ExecuteProcess("ffmpeg", Helpers.CreateFFmpegParameters(usmStream, pureFileName, OutputDir)); |
|
|
|
|
|
|
|
|
if (CleanTempFiles) |
|
|
if (CleanTempFiles) |
|
|