C# Class Files.AudioFiles.XAFile

Represents a *.xa file. It is used to store compressed wav data.
Inheritance: ISoundCodec, IDisposable
ファイルを表示 Open project: Afr0Games/Project-Dollhouse

Public Methods

Method Description
DecompressFile ( ) : void

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

DecompressedWav ( ) : byte[]

The decompressed wave data as a byte array. Will not contain any data unless DecompressFile() has been called!

Dispose ( ) : void
GetSampleRate ( ) : uint

Returns the sample rate for the wav data that makes up this sound.

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 ( Stream data ) : System
XAFile ( string path ) : System

Protected Methods

Method Description
Dispose ( bool CleanupNativeAndManagedResources ) : void

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

DecompressedWav() public method

The decompressed wave data as a byte array. Will not contain any data unless DecompressFile() has been called!
public DecompressedWav ( ) : byte[]
return byte[]

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool CleanupNativeAndManagedResources ) : void
CleanupNativeAndManagedResources bool
return void

GetSampleRate() public method

Returns the sample rate for the wav data that makes up this sound.
public GetSampleRate ( ) : uint
return uint

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 ( Stream data ) : System
data Stream
return System

XAFile() public method

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