C# Class GAudio.GATAudioThreadStreamToCache

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

Méthodes publiques

Méthode 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

Méthode Description
IGATAudioThreadStreamClient ( float data, int offset, bool emptyData, IGATAudioThreadStream stream ) : void

Method Details

GATAudioThreadStreamToCache() public méthode

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.
Résultat System.Collections

ReleaseCache() public méthode

Releases the cache objects.
public ReleaseCache ( ) : void
Résultat void

Start() public méthode

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.
Résultat void

Stop() public méthode

Stop caching immediately.
public Stop ( ) : void
Résultat void