C# Class GAudio.GATAudioThreadStreamToCache

Caches an input stream in seperate mono GATData containers.
Inheritance: IGATAudioThreadStreamClient
Datei anzeigen Open project: gregzo/G-Audio Class Usage Examples

Public Methods

Method Description
GATAudioThreadStreamToCache ( IGATAudioThreadStream stream, GATData caches, AtEndHandler handler = null ) : System.Collections

Initializes a new instance of the GATAudioThreadStreamToCache class.

ReleaseCache ( ) : void

Releases the cache objects.

Start ( double targetDspTime = 0d, AtEndHandler handler = null ) : void

Start caching the stream.

Stop ( ) : void

Stop caching immediately.

Private Methods

Method Description
IGATAudioThreadStreamClient ( float data, int offset, bool emptyData, IGATAudioThreadStream stream ) : void

Method Details

GATAudioThreadStreamToCache() public method

Initializes a new instance of the GATAudioThreadStreamToCache class.
public GATAudioThreadStreamToCache ( IGATAudioThreadStream stream, GATData caches, AtEndHandler handler = null ) : System.Collections
stream IGATAudioThreadStream The observed multichannel or mono stream.
caches GATData The caches to record to, one per channel must be provided.
handler AtEndHandler Optional callback fired when the cache is full.
return System.Collections

ReleaseCache() public method

Releases the cache objects.
public ReleaseCache ( ) : void
return void

Start() public method

Start caching the stream.
public Start ( double targetDspTime = 0d, AtEndHandler handler = null ) : void
targetDspTime double The dsp time at which caching should start. Pass 0 to start as soon as possible.
handler AtEndHandler Optional callback fired when the cache is full.
return void

Stop() public method

Stop caching immediately.
public Stop ( ) : void
return void