From 699bd94405c48d1a771dd8984f5302cd5c45cb82 Mon Sep 17 00:00:00 2001 From: jmarti856 Date: Thu, 17 Mar 2022 12:51:05 +0100 Subject: [PATCH] added two cases for the Aiff file (".aif" or ".aiff") --- PS2VagTool/ProgramFunctions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PS2VagTool/ProgramFunctions.cs b/PS2VagTool/ProgramFunctions.cs index d6fd8ae..00028bd 100644 --- a/PS2VagTool/ProgramFunctions.cs +++ b/PS2VagTool/ProgramFunctions.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Text; namespace PS2VagTool { @@ -16,7 +15,7 @@ internal static class ProgramFunctions internal static void ExecuteEncoder(string inputFile, string outputFile, bool forceNoLooping, bool forceLooping) { string fileExtension = Path.GetExtension(inputFile); - if (fileExtension.Equals(".aif", StringComparison.OrdinalIgnoreCase)) + if (fileExtension.Equals(".aif", StringComparison.OrdinalIgnoreCase) || fileExtension.Equals(".aiff", StringComparison.OrdinalIgnoreCase)) { //Read file data short[] pcmData;