C# 클래스 GAudio.GATActiveSampleBank

Adds processed samples caching functionnalities to GATSampleBank.
상속: GATSampleBank
파일 보기 프로젝트 열기: gregzo/G-Audio 1 사용 예제들

공개 메소드들

메소드 설명
AddSample ( GATData data, string sampleName ) : void
FlushCacheForEnvelope ( GATEnvelope envelope ) : void

Flushs all cached samples associated with the specified envelope.

GetProcessedSample ( int indexInBank, GATEnvelope envelope, double pitch = 1d ) : IGATProcessedSample
GetProcessedSample ( string sampleName, GATEnvelope envelope, double pitch = 1d ) : IGATProcessedSample

Gets a processed sample container that will automatically update according to the envelope. Play it directly, not via GATPlayer : all envelope updates will be handled, even when overlapping sounds have their envelope changed. Note that the pitch parameter will only be taken into account by GATResamplingSampleBank instances.

RemoveSample ( string name ) : void

보호된 메소드들

메소드 설명
CleanUpCache ( ) : void

Only call when destroying!

OnDestroy ( ) : void

메소드 상세

AddSample() 공개 메소드

public AddSample ( GATData data, string sampleName ) : void
data GATData
sampleName string
리턴 void

CleanUpCache() 보호된 메소드

Only call when destroying!
protected CleanUpCache ( ) : void
리턴 void

FlushCacheForEnvelope() 공개 메소드

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

GetProcessedSample() 공개 메소드

public GetProcessedSample ( int indexInBank, GATEnvelope envelope, double pitch = 1d ) : IGATProcessedSample
indexInBank int
envelope GATEnvelope
pitch double
리턴 IGATProcessedSample

GetProcessedSample() 공개 메소드

Gets a processed sample container that will automatically update according to the envelope. Play it directly, not via GATPlayer : all envelope updates will be handled, even when overlapping sounds have their envelope changed. Note that the pitch parameter will only be taken into account by GATResamplingSampleBank instances.
public GetProcessedSample ( string sampleName, GATEnvelope envelope, double pitch = 1d ) : IGATProcessedSample
sampleName string /// The sample's name in the loaded SoundBank ///
envelope GATEnvelope /// The envelope may be null if you need the whole, unprocessed sample. ///
pitch double
리턴 IGATProcessedSample

OnDestroy() 보호된 메소드

protected OnDestroy ( ) : void
리턴 void

RemoveSample() 공개 메소드

public RemoveSample ( string name ) : void
name string
리턴 void