mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 20:04: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 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)
|
void ConvertAudio (string filename)
|
||||||
{
|
{
|
||||||
@ -185,7 +184,7 @@ namespace GARbro.GUI
|
|||||||
return;
|
return;
|
||||||
string output_name = Path.ChangeExtension (filename, "wav");
|
string output_name = Path.ChangeExtension (filename, "wav");
|
||||||
using (var output = CreateNewFile (output_name))
|
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");
|
string output_name = FindUniqueFileName (entry_name, "wav");
|
||||||
using (var output = ArchiveFormat.CreateFile (output_name))
|
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