C# Класс TagTool.Sounds.SoundExtractor

Provides methods for extracting and converting Wwise sound files.
Показать файл Открыть проект

Открытые методы

Метод Описание
ConvertFile ( string wavPath, string outPath ) : void

Converts an audio file from one format to another. The output format is determined based upon the file extension.

ExtractAndConvertXWMA ( EndianReader reader, int offset, RIFX rifx, string outPath ) : void

Extracts an xWMA sound and converts it to another format.

ExtractRaw ( EndianReader reader, int offset, int size, string outPath ) : void

Extracts the raw contents of a sound to a file.

ExtractWwiseToOGG ( EndianReader reader, int offset, int size, string outPath ) : void

Extracts a Wwise OGG and converts it to a "regular" OGG file.

ExtractXMAToWAV ( EndianReader reader, int offset, RIFX rifx, string outPath ) : void

Extracts an XMA sound and converts it to a WAV.

ExtractXWMAToWAV ( EndianReader reader, int offset, RIFX rifx, string outPath ) : void

Extracts an xWMA sound and converts it to WAV.

Приватные методы

Метод Описание
RunProgramSilently ( string path, string arguments, string workingDirectory ) : void

Silently executes a program and waits for it to finish.

Описание методов

ConvertFile() публичный статический Метод

Converts an audio file from one format to another. The output format is determined based upon the file extension.
public static ConvertFile ( string wavPath, string outPath ) : void
wavPath string The path of the audio file to convert.
outPath string The path of the file to save to.
Результат void

ExtractAndConvertXWMA() публичный статический Метод

Extracts an xWMA sound and converts it to another format.
public static ExtractAndConvertXWMA ( EndianReader reader, int offset, RIFX rifx, string outPath ) : void
reader EndianReader The stream to read from.
offset int The offset of the data to extract.
rifx RIFX The RIFX data for the sound.
outPath string The path of the file to save to. The file extension will determine the output format.
Результат void

ExtractRaw() публичный статический Метод

Extracts the raw contents of a sound to a file.
public static ExtractRaw ( EndianReader reader, int offset, int size, string outPath ) : void
reader EndianReader The stream to read from.
offset int The offset of the data to extract.
size int The size of the data to extract.
outPath string The path of the file to save to.
Результат void

ExtractWwiseToOGG() публичный статический Метод

Extracts a Wwise OGG and converts it to a "regular" OGG file.
public static ExtractWwiseToOGG ( EndianReader reader, int offset, int size, string outPath ) : void
reader EndianReader The stream to read from.
offset int The offset of the data to extract.
size int The size of the data to extract.
outPath string The path of the file to save to.
Результат void

ExtractXMAToWAV() публичный статический Метод

Extracts an XMA sound and converts it to a WAV.
public static ExtractXMAToWAV ( EndianReader reader, int offset, RIFX rifx, string outPath ) : void
reader EndianReader The stream to read from.
offset int The offset of the data to extract.
rifx RIFX The RIFX data for the sound.
outPath string The path of the file to save to.
Результат void

ExtractXWMAToWAV() публичный статический Метод

Extracts an xWMA sound and converts it to WAV.
public static ExtractXWMAToWAV ( EndianReader reader, int offset, RIFX rifx, string outPath ) : void
reader EndianReader The stream to read from.
offset int The offset of the data to extract.
rifx RIFX The RIFX data for the sound.
outPath string The path of the file to save to.
Результат void