mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
use AudioFormat.Wav shortcut.
This commit is contained in:
parent
a9ffd7cccc
commit
ce496ce05f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user