Свойство | Type | Description | |
---|---|---|---|
WriteChunkFrames | int |
Méthode | Description | |
---|---|---|
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. |
|
GATAsyncWavWriter ( string filePath, int numChannels, bool overwrite ) : System |
filePath should be absolute and valid. If the file doesn't exist, it will be immediately created.
|
|
PrepareToWrite ( ) : void |
You must call PrepareToWrite before the first WriteStreamAsync call. This starts a thread which waits for input and writes to disk when enough data has been received.
|
|
StopAndFinalize ( ) : void |
Blocks further input, flushes what is left in the ring buffer to disk, and finalizes the header. As these operations are async, the file will not be immediately ready to be opened.
|
|
WriteStreamAsync ( float data, int offset, int numFrames ) : void |
Hand out data here sequentially. If PrepareToWrite has not been called before, this method will have no effect. Note that numFrames should not exceed WriteChunkFrames.
|
Méthode | Description | |
---|---|---|
Dispose ( bool explicitly ) : void |
Méthode | Description | |
---|---|---|
AsyncWriteLoop ( ) : void | ||
ConvertAndWriteChunk ( int numFrames ) : void |
protected Dispose ( bool explicitly ) : void | ||
explicitly | bool | |
Résultat | void |
public GATAsyncWavWriter ( string filePath, int numChannels, bool overwrite ) : System | ||
filePath | string | |
numChannels | int | |
overwrite | bool | |
Résultat | System |
public WriteStreamAsync ( float data, int offset, int numFrames ) : void | ||
data | float | |
offset | int | |
numFrames | int | |
Résultat | void |