C# 클래스 Files.AudioFiles.XAFile

Represents a *.xa file. It is used to store compressed wav data.
상속: ISoundCodec, IDisposable
파일 보기 프로젝트 열기: Afr0Games/Project-Dollhouse

공개 메소드들

메소드 설명
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