Method | Description | |
---|---|---|
AddSample ( |
||
FlushCacheForEnvelope ( |
Flushs all cached samples associated with the specified envelope.
|
|
GetProcessedSample ( int indexInBank, |
||
GetProcessedSample ( string sampleName, |
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 |
Method | Description | |
---|---|---|
CleanUpCache ( ) : void |
Only call when destroying!
|
|
OnDestroy ( ) : void |
public AddSample ( |
||
data | ||
sampleName | string | |
return | void |
public FlushCacheForEnvelope ( |
||
envelope | Envelope. | |
return | void |
public GetProcessedSample ( int indexInBank, |
||
indexInBank | int | |
envelope | ||
pitch | double | |
return | IGATProcessedSample |
public GetProcessedSample ( string sampleName, |
||
sampleName | string | /// The sample's name in the loaded SoundBank /// |
envelope | /// The envelope may be null if you need the whole, unprocessed sample. /// | |
pitch | double | |
return | IGATProcessedSample |