C# Class FSO.Files.XA.XAFile

Represents a *.xa file. It is used to store compressed wav data.
Show file Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
DecompressFile ( ) : void

Decompresses the sounddata and stores it in the the decompressed stream in this class.

LoadFile ( byte Data ) : void

Loads an *.xa file, setting things up for decompression. Should always be called before DecompressFile().

LoadFile ( string Path ) : void

Loads a *.xa file, setting things up for decompression. Should always be called before DecompressFile().

XAFile ( byte data ) : System
XAFile ( string path ) : System

Private Methods

Method Description
Clip16BitSample ( int sample ) : int
DecompressMono ( byte InputBuffer ) : void

Decompresses a mono sample.

DecompressStereo ( byte InputBuffer ) : void

Decompresses a stereo sample.

HINIBBLE ( byte B ) : byte
LONIBBLE ( byte B ) : byte

Method Details

DecompressFile() public method

Decompresses the sounddata and stores it in the the decompressed stream in this class.
public DecompressFile ( ) : void
return void

LoadFile() public method

Loads an *.xa file, setting things up for decompression. Should always be called before DecompressFile().
public LoadFile ( byte Data ) : void
Data byte The data of the *.xa file to process.
return void

LoadFile() public method

Loads a *.xa file, setting things up for decompression. Should always be called before DecompressFile().
public LoadFile ( string Path ) : void
Path string The path to the *.xa file to load.
return void

XAFile() public method

public XAFile ( byte data ) : System
data byte
return System

XAFile() public method

public XAFile ( string path ) : System
path string
return System