C# Class Files.AudioFiles.XAFile

Represents a *.xa file. It is used to store compressed wav data.
Inheritance: ISoundCodec, IDisposable
Afficher le fichier Open project: Afr0Games/Project-Dollhouse

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool CleanupNativeAndManagedResources ) : void

Private Methods

Méthode 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 méthode

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

DecompressedWav() public méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool CleanupNativeAndManagedResources ) : void
CleanupNativeAndManagedResources bool
Résultat void

GetSampleRate() public méthode

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

LoadFile() public méthode

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.
Résultat void

LoadFile() public méthode

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.
Résultat void

XAFile() public méthode

public XAFile ( Stream data ) : System
data Stream
Résultat System

XAFile() public méthode

public XAFile ( string path ) : System
path string
Résultat System