C# 클래스 GAudio.AGATAudioFile

Base class for reading ogg and uncompressed wav files, from disk or memory streams. Use OpenAudioFileAtPath to retrieve an instance. GATPathsHelper provides handy methods for converting relative paths to absolute paths. Don't forget to call Dispose() to close the file and release resources!
상속: IDisposable
파일 보기 프로젝트 열기: gregzo/G-Audio 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
filePath string

보호된 프로퍼티들

프로퍼티 타입 설명
_readChunkSize int

공개 메소드들

메소드 설명
Dispose ( ) : void

Releases all resource used by the GATAsyncWavWriter object.

Call Dispose when you are finished using the GATAsyncWavWriter. The Dispose method leaves the GATAsyncWavWriter in an unusable state. After calling Dispose, you must release all references to the GATAsyncWavWriter so the garbage collector can reclaim the memory that the GATAsyncWavWriter was occupying.

OpenAudioFileAtPath ( string path ) : AGATAudioFile

Creates and returns a ready to use AGATAudioFile object. Wrap in a try catch block if you are not sure that the file type is supported.

OpenAudioFileFromStream ( Stream stream, string format ) : AGATAudioFile

Creates and returns a ready to use AGATAudioFile object. Wrap in a try catch block if you are not sure that the file type is supported.

ReadNextChunk ( float target, int offset, int numFrames ) : int

Reads the next chunk into the target array at offset. Multichannel data is always interleaved.

보호된 메소드들

메소드 설명
AGATAudioFile ( ) : System
AGATAudioFile ( string path ) : System
FreeResources ( ) : void

비공개 메소드들

메소드 설명
Dispose ( bool explicitly ) : void

메소드 상세

AGATAudioFile() 보호된 메소드

protected AGATAudioFile ( ) : System
리턴 System

AGATAudioFile() 보호된 메소드

protected AGATAudioFile ( string path ) : System
path string
리턴 System

Dispose() 공개 메소드

Releases all resource used by the GATAsyncWavWriter object.
Call Dispose when you are finished using the GATAsyncWavWriter. The Dispose method leaves the GATAsyncWavWriter in an unusable state. After calling Dispose, you must release all references to the GATAsyncWavWriter so the garbage collector can reclaim the memory that the GATAsyncWavWriter was occupying.
public Dispose ( ) : void
리턴 void

FreeResources() 보호된 추상적인 메소드

protected abstract FreeResources ( ) : void
리턴 void

OpenAudioFileAtPath() 공개 정적인 메소드

Creates and returns a ready to use AGATAudioFile object. Wrap in a try catch block if you are not sure that the file type is supported.
public static OpenAudioFileAtPath ( string path ) : AGATAudioFile
path string
리턴 AGATAudioFile

OpenAudioFileFromStream() 공개 정적인 메소드

Creates and returns a ready to use AGATAudioFile object. Wrap in a try catch block if you are not sure that the file type is supported.
public static OpenAudioFileFromStream ( Stream stream, string format ) : AGATAudioFile
stream Stream
format string
리턴 AGATAudioFile

ReadNextChunk() 공개 추상적인 메소드

Reads the next chunk into the target array at offset. Multichannel data is always interleaved.
public abstract ReadNextChunk ( float target, int offset, int numFrames ) : int
target float
offset int
numFrames int
리턴 int

프로퍼티 상세

_readChunkSize 보호되어 있는 프로퍼티

protected int _readChunkSize
리턴 int

filePath 공개적으로 프로퍼티

The file path.
public string filePath
리턴 string