use AudioFormat.Wav shortcut.

This commit is contained in:
morkt 2015-08-14 06:05:50 +04:00
parent a9ffd7cccc
commit ce496ce05f
2 changed files with 2 additions and 3 deletions

View File

@ -157,7 +157,6 @@ namespace GARbro.GUI
}
public static readonly HashSet<string> CommonAudioFormats = new HashSet<string> { "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);
}
}
}

View File

@ -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);
}
}