From ce496ce05fe0c0971d0708dc398789f55c46231d Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 14 Aug 2015 06:05:50 +0400 Subject: [PATCH] use AudioFormat.Wav shortcut. --- GarConvert.cs | 3 +-- GarExtract.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/GarConvert.cs b/GarConvert.cs index 2c076c8a..72ab5cd4 100644 --- a/GarConvert.cs +++ b/GarConvert.cs @@ -157,7 +157,6 @@ namespace GARbro.GUI } public static readonly HashSet CommonAudioFormats = new HashSet { "wav", "mp3", "ogg" }; - public static readonly AudioFormat WavFormat = FormatCatalog.Instance.AudioFormats.First (f => f.Tag == "WAV"); void ConvertAudio (string filename) { @@ -185,7 +184,7 @@ namespace GARbro.GUI return; string output_name = Path.ChangeExtension (filename, "wav"); using (var output = CreateNewFile (output_name)) - WavFormat.Write (input, output); + AudioFormat.Wav.Write (input, output); } } } diff --git a/GarExtract.cs b/GarExtract.cs index 5365d085..29e2d9fe 100644 --- a/GarExtract.cs +++ b/GarExtract.cs @@ -382,7 +382,7 @@ namespace GARbro.GUI { string output_name = FindUniqueFileName (entry_name, "wav"); using (var output = ArchiveFormat.CreateFile (output_name)) - GarConvertMedia.WavFormat.Write (input, output); + AudioFormat.Wav.Write (input, output); } }