void InitFilters() { _FiltersHandler = ScriptableObject.CreateInstance <GATFiltersHandler>(); _FiltersHandler.InitFiltersHandler(GATInfo.NbOfChannels); _GainFilter = ( GATGainFilter )_FiltersHandler.AddFilter <GATGainFilter>(999); _GainFilter.Gain = _Gain; _GainFilter.Threshold = _ClipThreshold; _GainFilter.Clip = _DoClip; }
public virtual void InitTrack(GATPlayer parentPlayer, int trackNb) { int i; _player = parentPlayer; _trackNb = trackNb; _filtersHandler = ScriptableObject.CreateInstance <GATFiltersHandler>(); _filtersHandler.InitFiltersHandler(1); //GATTracks are mono, panning occurs after filtering. _gains = new float[GATInfo.NbOfChannels]; for (i = 0; i < _gains.Length; i++) { _gains[i] = .5f; } OnEnable(); }