C# Класс Files.AudioFiles.XAFile

Represents a *.xa file. It is used to store compressed wav data.
Наследование: ISoundCodec, IDisposable
Показать файл Открыть проект

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

Метод Описание
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

Защищенные методы

Метод Описание
Dispose ( bool CleanupNativeAndManagedResources ) : void

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

Метод Описание
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

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

DecompressFile() публичный Метод

Decompresses the sounddata and stores it in the the decompressed stream in this class.
public DecompressFile ( ) : void
Результат void

DecompressedWav() публичный Метод

The decompressed wave data as a byte array. Will not contain any data unless DecompressFile() has been called!
public DecompressedWav ( ) : byte[]
Результат byte[]

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool CleanupNativeAndManagedResources ) : void
CleanupNativeAndManagedResources bool
Результат void

GetSampleRate() публичный Метод

Returns the sample rate for the wav data that makes up this sound.
public GetSampleRate ( ) : uint
Результат uint

LoadFile() публичный Метод

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.
Результат void

LoadFile() публичный Метод

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.
Результат void

XAFile() публичный Метод

public XAFile ( Stream data ) : System
data Stream
Результат System

XAFile() публичный Метод

public XAFile ( string path ) : System
path string
Результат System