Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        public TrackFiltersInfo( GATFiltersHandler handler )
        {
            int i;
            AGATMonoFilter monoFilter;

            _filters 			= new AGATFilter[ MONOFILTERS_COUNT ];
            _filterNames 		= new string[ MONOFILTERS_COUNT ];
            _handler 			= handler;

            for( i = 0; i < MONOFILTERS_COUNT; i++ )
            {
                monoFilter = handler.GetFilterAtSlot( i );

                if( monoFilter != null )
                {
                    _filters[ i ] 		= monoFilter;
                    _filterNames[ i ] 	= AGATMonoFilter.FilterNameForType( monoFilter.GetType() );
                }
                else
                {
                    _filterNames[ i ] = "Slot "+i;
                }
            }
        }