public override void AddSample( GATData data, string sampleName ) { base.AddSample( data, sampleName ); if( _cache == null ) _cache = new GATProcessedSamplesCache( _totalCapacity ); _cache.AddSample( data ); }
/// <summary> /// Only call when destroying! /// </summary> protected virtual void CleanUpCache() { if (_cache == null) { return; } _cache.Dispose(); _cache = null; }
public override void AddSample(GATData data, string sampleName) { base.AddSample(data, sampleName); if (_cache == null) { _cache = new GATProcessedSamplesCache(_totalCapacity); } _cache.AddSample(data); }
public ProcessedAudioChunk(GATData sourcesample, GATEnvelope ienvelope, GATProcessedSamplesCache parentCache, double pitch = 1d) { sourceSample = sourcesample; envelope = ienvelope; _parentCache = parentCache; if (envelope == GATEnvelope.nullEnvelope) //_cachedLength will never change { _cachedLength = sourcesample.Count; } else { _cachedLength = envelope.Length; } SetPitch(pitch); }
public ProcessedAudioChunk( GATData sourcesample, GATEnvelope ienvelope, GATProcessedSamplesCache parentCache, double pitch = 1d ) { sourceSample = sourcesample; envelope = ienvelope; _parentCache = parentCache; if( envelope == GATEnvelope.nullEnvelope ) //_cachedLength will never change { _cachedLength = sourcesample.Count; } else { _cachedLength = envelope.Length; } SetPitch( pitch ); }
/// <summary> /// Only call when destroying! /// </summary> protected virtual void CleanUpCache() { if( _cache == null ) return; _cache.Dispose(); _cache = null; }