From 88f1d260e1f8564472a637960b07c984980ed842 Mon Sep 17 00:00:00 2001 From: Abheek D <67982792+ADawesomeguy@users.noreply.github.com> Date: Wed, 20 Oct 2021 12:35:23 -0500 Subject: [PATCH] Attempt to remove need for vgmstream as ffmpeg seems to be able to handle everything --- UsmToolkit/Commands.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/UsmToolkit/Commands.cs b/UsmToolkit/Commands.cs index 5f6e5e0..ef029bb 100644 --- a/UsmToolkit/Commands.cs +++ b/UsmToolkit/Commands.cs @@ -109,22 +109,6 @@ namespace UsmToolkit var audioFormat = usmStream.FinalAudioExtension; 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)); if (CleanTempFiles)