C# Class TagTool.Sounds.SoundExtractor

Provides methods for extracting and converting Wwise sound files.
Show file Open project: TheGuardians/TagTool

Public Methods

Method Description
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.

Private Methods

Method Description
RunProgramSilently ( string path, string arguments, string workingDirectory ) : void

Silently executes a program and waits for it to finish.

Method Details

ConvertFile() public static method

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.
return void

ExtractAndConvertXWMA() public static method

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.
return void

ExtractRaw() public static method

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.
return void

ExtractWwiseToOGG() public static method

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.
return void

ExtractXMAToWAV() public static method

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.
return void

ExtractXWMAToWAV() public static method

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.
return void