C# Class GAudio.GATProcessedSamplesCache

Manages a cache of processed samples. Used by GATActiveSampleBank to serve IGATProcessedSample objects.
Inheritance: IDisposable
Afficher le fichier Open project: gregzo/G-Audio Class Usage Examples

Méthodes publiques

Méthode Description
AddSample ( GATData sample ) : void
Dispose ( ) : void
FlushCacheForEnvelope ( GATEnvelope envelope ) : void

Flushs all cached samples associated with the specified envelope.

GATProcessedSamplesCache ( List sourceSamples, int extraCapacity ) : UnityEngine
GATProcessedSamplesCache ( int capacity ) : UnityEngine
GetProcessedSample ( GATData sourceSample, double pitch, GATEnvelope envelope ) : IGATProcessedSample
RemoveSample ( GATData sample ) : void

Private Methods

Méthode Description
Dispose ( bool explicitly ) : void
FreeAll ( ) : void
RemoveChunkFromCache ( ProcessedAudioChunk chunk ) : void

Method Details

AddSample() public méthode

public AddSample ( GATData sample ) : void
sample GATData
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

FlushCacheForEnvelope() public méthode

Flushs all cached samples associated with the specified envelope.
public FlushCacheForEnvelope ( GATEnvelope envelope ) : void
envelope GATEnvelope Envelope.
Résultat void

GATProcessedSamplesCache() public méthode

public GATProcessedSamplesCache ( List sourceSamples, int extraCapacity ) : UnityEngine
sourceSamples List
extraCapacity int
Résultat UnityEngine

GATProcessedSamplesCache() public méthode

public GATProcessedSamplesCache ( int capacity ) : UnityEngine
capacity int
Résultat UnityEngine

GetProcessedSample() public méthode

public GetProcessedSample ( GATData sourceSample, double pitch, GATEnvelope envelope ) : IGATProcessedSample
sourceSample GATData
pitch double
envelope GATEnvelope
Résultat IGATProcessedSample

RemoveSample() public méthode

public RemoveSample ( GATData sample ) : void
sample GATData
Résultat void