C# Class GAudio.GATProcessedSamplesCache

Manages a cache of processed samples. Used by GATActiveSampleBank to serve IGATProcessedSample objects.
Inheritance: IDisposable
显示文件 Open project: gregzo/G-Audio Class Usage Examples

Public Methods

Method 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

Method Description
Dispose ( bool explicitly ) : void
FreeAll ( ) : void
RemoveChunkFromCache ( ProcessedAudioChunk chunk ) : void

Method Details

AddSample() public method

public AddSample ( GATData sample ) : void
sample GATData
return void

Dispose() public method

public Dispose ( ) : void
return void

FlushCacheForEnvelope() public method

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

GATProcessedSamplesCache() public method

public GATProcessedSamplesCache ( List sourceSamples, int extraCapacity ) : UnityEngine
sourceSamples List
extraCapacity int
return UnityEngine

GATProcessedSamplesCache() public method

public GATProcessedSamplesCache ( int capacity ) : UnityEngine
capacity int
return UnityEngine

GetProcessedSample() public method

public GetProcessedSample ( GATData sourceSample, double pitch, GATEnvelope envelope ) : IGATProcessedSample
sourceSample GATData
pitch double
envelope GATEnvelope
return IGATProcessedSample

RemoveSample() public method

public RemoveSample ( GATData sample ) : void
sample GATData
return void