C# Class GAudio.GATSoundBank

Inheritance: UnityEngine.ScriptableObject
Afficher le fichier Open project: gregzo/G-Audio Class Usage Examples

Méthodes publiques

Méthode Description
AddSample ( string pathInResources, string guid, int numChannels, int samplesPerChannel, bool isStreamingAsset ) : void
Contains ( string sampleGUID ) : bool
ContainsSampleNamed ( string sampleName ) : bool
GetFullPathsInStreamingAssets ( List sampleNames ) : string[]
GetMidiCodes ( int offset, int fftSize = 4096, int maxFreq = 5000 ) : void
GetSampleInfo ( string sampleName ) : GATSampleInfo
Init ( int sampleRate ) : void
LoadAll ( GATDataAllocationMode allocationMode ) : GATData>.Dictionary
LoadSamplesNamed ( List sampleNames, GATDataAllocationMode allocationMode ) : GATData>.Dictionary
RemoveSample ( GATSampleInfo sampleInfo ) : void
SizeOfLongestSample ( ) : int
SizeOfShortestSample ( ) : int
SortByMidiCode ( ) : void

Private Methods

Méthode Description
LoadSample ( GATSampleInfo info, GATData>.Dictionary target, GATDataAllocationMode allocationMode ) : void
LoadSampleFromResources ( GATDataAllocationMode mode, GATSampleInfo info, GATData>.Dictionary loadedSamples ) : void
LoadSampleFromStreamingAssets ( GATDataAllocationMode mode, GATSampleInfo info, GATData>.Dictionary loadedSamples ) : void

Method Details

AddSample() public méthode

public AddSample ( string pathInResources, string guid, int numChannels, int samplesPerChannel, bool isStreamingAsset ) : void
pathInResources string
guid string
numChannels int
samplesPerChannel int
isStreamingAsset bool
Résultat void

Contains() public méthode

public Contains ( string sampleGUID ) : bool
sampleGUID string
Résultat bool

ContainsSampleNamed() public méthode

public ContainsSampleNamed ( string sampleName ) : bool
sampleName string
Résultat bool

GetFullPathsInStreamingAssets() public méthode

public GetFullPathsInStreamingAssets ( List sampleNames ) : string[]
sampleNames List
Résultat string[]

GetMidiCodes() public méthode

public GetMidiCodes ( int offset, int fftSize = 4096, int maxFreq = 5000 ) : void
offset int
fftSize int
maxFreq int
Résultat void

GetSampleInfo() public méthode

public GetSampleInfo ( string sampleName ) : GATSampleInfo
sampleName string
Résultat GATSampleInfo

Init() public méthode

public Init ( int sampleRate ) : void
sampleRate int
Résultat void

LoadAll() public méthode

public LoadAll ( GATDataAllocationMode allocationMode ) : GATData>.Dictionary
allocationMode GATDataAllocationMode
Résultat GATData>.Dictionary

LoadSamplesNamed() public méthode

public LoadSamplesNamed ( List sampleNames, GATDataAllocationMode allocationMode ) : GATData>.Dictionary
sampleNames List
allocationMode GATDataAllocationMode
Résultat GATData>.Dictionary

RemoveSample() public méthode

public RemoveSample ( GATSampleInfo sampleInfo ) : void
sampleInfo GATSampleInfo
Résultat void

SizeOfLongestSample() public méthode

public SizeOfLongestSample ( ) : int
Résultat int

SizeOfShortestSample() public méthode

public SizeOfShortestSample ( ) : int
Résultat int

SortByMidiCode() public méthode

public SortByMidiCode ( ) : void
Résultat void