C# 클래스 GAudio.GATSoundBank

상속: UnityEngine.ScriptableObject
파일 보기 프로젝트 열기: gregzo/G-Audio 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddSample() 공개 메소드

public AddSample ( string pathInResources, string guid, int numChannels, int samplesPerChannel, bool isStreamingAsset ) : void
pathInResources string
guid string
numChannels int
samplesPerChannel int
isStreamingAsset bool
리턴 void

Contains() 공개 메소드

public Contains ( string sampleGUID ) : bool
sampleGUID string
리턴 bool

ContainsSampleNamed() 공개 메소드

public ContainsSampleNamed ( string sampleName ) : bool
sampleName string
리턴 bool

GetFullPathsInStreamingAssets() 공개 메소드

public GetFullPathsInStreamingAssets ( List sampleNames ) : string[]
sampleNames List
리턴 string[]

GetMidiCodes() 공개 메소드

public GetMidiCodes ( int offset, int fftSize = 4096, int maxFreq = 5000 ) : void
offset int
fftSize int
maxFreq int
리턴 void

GetSampleInfo() 공개 메소드

public GetSampleInfo ( string sampleName ) : GATSampleInfo
sampleName string
리턴 GATSampleInfo

Init() 공개 메소드

public Init ( int sampleRate ) : void
sampleRate int
리턴 void

LoadAll() 공개 메소드

public LoadAll ( GATDataAllocationMode allocationMode ) : GATData>.Dictionary
allocationMode GATDataAllocationMode
리턴 GATData>.Dictionary

LoadSamplesNamed() 공개 메소드

public LoadSamplesNamed ( List sampleNames, GATDataAllocationMode allocationMode ) : GATData>.Dictionary
sampleNames List
allocationMode GATDataAllocationMode
리턴 GATData>.Dictionary

RemoveSample() 공개 메소드

public RemoveSample ( GATSampleInfo sampleInfo ) : void
sampleInfo GATSampleInfo
리턴 void

SizeOfLongestSample() 공개 메소드

public SizeOfLongestSample ( ) : int
리턴 int

SizeOfShortestSample() 공개 메소드

public SizeOfShortestSample ( ) : int
리턴 int

SortByMidiCode() 공개 메소드

public SortByMidiCode ( ) : void
리턴 void