GAudio.GATSoundBank.LoadSample C# (CSharp) Method

LoadSample() private method

private LoadSample ( GATSampleInfo info, GATData>.Dictionary target, GATDataAllocationMode allocationMode ) : void
info GATSampleInfo
target GATData>.Dictionary
allocationMode GATDataAllocationMode
return void
        void LoadSample( GATSampleInfo info, Dictionary< string, GATData > target, GATDataAllocationMode allocationMode )
        {
            if( info.IsStreamingAsset )
            {
                #if UNITY_EDITOR
                if( Application.isPlaying == false )
                {
                    LoadSampleFromResources( GATDataAllocationMode.Unmanaged, info, target );
                    return;
                }
                #endif
                LoadSampleFromStreamingAssets( allocationMode, info, target );
            }
            else
            {
                LoadSampleFromResources( allocationMode, info, target );
            }
        }