Свойство | Type | Description | |
---|---|---|---|
extraCapacity | int |
Свойство | Type | Description | |
---|---|---|---|
_allKeys | string[] | ||
_allSamples | List |
||
_samplesByName | GATData>.Dictionary | ||
_soundBank | GATSoundBank | ||
_totalCapacity | int |
Méthode | Description | |
---|---|---|
AddLoadedFile ( |
Compatibility with GATAudioLoader.
|
|
AddSample ( |
Adds a sample to the bank, which will retain it, and manage cache for it if GATActiveSamplebank.
|
|
ContainsSampleNamed ( string sampleName ) : bool |
Is the specified sample loaded?
|
|
EditorUpdateSoundBank ( |
||
FillWithResampledData ( |
||
FillWithResampledData ( |
Convenience method for copying a resampled chunk of a sample to a GATData container. Target length is the requested ouptut length.
|
|
FillWithSampleData ( |
||
FillWithSampleData ( |
Convenience method for copying a chunk of a sample to a GATData container.
|
|
GetAudioData ( int indexInBank ) : |
||
GetAudioData ( string sampleName ) : |
Grabs a reference to the samples data. Note that changes to the data will be persistent until the bank is reloaded.
|
|
GetClosestSampleForMidiCode ( float midiCode, float &pitchShift ) : |
Returns the sample closest to the provided midicode and a pitch shift value to be applied to the sample
|
|
LoadAll ( ) : void |
Loads all samples from the referenced SoundBank. Sync operation
|
|
LoadSamplesNamed ( List |
Loads specific samples from the referenced Sound Bank. Sync operation.
|
|
LoadStreamingAssetsAsync ( List |
Loads specific StreamingAssets samples from the referenced Sound Bank. Async operation.
|
|
OnEnable ( ) : void | ||
RemoveSample ( string sampleName ) : void |
Releases a specific sample and it's associated cache.
|
|
RemoveSamples ( List |
Releases specific samples and their associated cache.
|
|
UnloadAll ( ) : void |
Releases all loaded samples.
|
|
UpdateSoundBank ( ) : void |
Méthode | Description | |
---|---|---|
Awake ( ) : void | ||
FillWithResampledData ( |
||
FillWithSampleData ( |
||
InitCollections ( ) : void | ||
OnDestroy ( ) : void |
public AddLoadedFile ( |
||
channelsData | ||
fileName | string | |
Résultat | void |
public AddSample ( |
||
data | ||
sampleName | string | |
Résultat | void |
public ContainsSampleNamed ( string sampleName ) : bool | ||
sampleName | string | |
Résultat | bool |
public EditorUpdateSoundBank ( |
||
bank | ||
Résultat | void |
protected FillWithResampledData ( |
||
sourceData | ||
targetData | ||
fromIndex | int | |
targetLength | int | |
pitch | double | |
Résultat | void |
public FillWithResampledData ( |
||
data | ||
indexInBank | int | |
fromIndex | int | |
targetLength | int | |
pitch | double | |
Résultat | void |
public FillWithResampledData ( |
||
data | ||
sampleName | string | |
fromIndex | int | |
targetLength | int | |
pitch | double | |
Résultat | void |
protected FillWithSampleData ( |
||
sourceData | ||
targetData | ||
fromIndex | int | |
length | int | |
Résultat | void |
public FillWithSampleData ( |
||
data | ||
indexInBank | int | |
fromIndex | int | |
length | int | |
Résultat | void |
public FillWithSampleData ( |
||
data | ||
sampleName | string | |
fromIndex | int | |
length | int | |
Résultat | void |
public GetAudioData ( int indexInBank ) : |
||
indexInBank | int | |
Résultat |
public GetAudioData ( string sampleName ) : |
||
sampleName | string | |
Résultat |
public GetClosestSampleForMidiCode ( float midiCode, float &pitchShift ) : |
||
midiCode | float | Midi code. |
pitchShift | float | Pitch shift. |
Résultat |
public LoadSamplesNamed ( List |
||
sampleNames | List |
|
Résultat | void |
public LoadStreamingAssetsAsync ( List |
||
sampleNames | List |
|
onCompleted | OperationCompletedHandler | |
Résultat | void |
public RemoveSample ( string sampleName ) : void | ||
sampleName | string | |
Résultat | void |
public RemoveSamples ( List |
||
sampleNames | List |
|
Résultat | void |
protected Dictionary |
||
Résultat | GATData>.Dictionary |