コード例 #1
0
ファイル: Example_05.cs プロジェクト: uniphonic/G-Audio
            public RecInfo(int numSamples, int numChannels, int itrackNb)
            {
                int i;

                data = new GATData[numChannels];

                for (i = 0; i < numChannels; i++)
                {
                    data[i] = new GATData(new float[numSamples]);
                }

                trackNb = itrackNb;
                Track   = GATManager.DefaultPlayer.GetTrack(trackNb);
            }
コード例 #2
0
ファイル: Example_05.cs プロジェクト: uniphonic/G-Audio
        // Update track and filter info when the user switches track
        void UpdateCurrentTrack()
        {
            _currentTrack = GATManager.DefaultPlayer.GetTrack(_recs[_currentRecIndex].trackNb);

            _selectedFilter = _currentTrack.FiltersHandler.GetFilterAtSlot(0);

            if (_selectedFilter != null)
            {
                _trackFilterProps = _selectedFilter.GetFilterProperties();
                _filterName       = AGATMonoFilter.FilterNameForType(_selectedFilter.GetType());
            }

            if (_micMode == MicMode.Track)              // if we're routing the mic through a track, we should update the streamToTrack object
            {
                streamToTrack.TargetTrack = _currentTrack;
            }
        }
コード例 #3
0
ファイル: Example_05.cs プロジェクト: gregzo/G-Audio
        // Update track and filter info when the user switches track
        void UpdateCurrentTrack()
        {
            _currentTrack = GATManager.DefaultPlayer.GetTrack( _recs[ _currentRecIndex ].trackNb );

            _selectedFilter = _currentTrack.FiltersHandler.GetFilterAtSlot( 0 );

            if( _selectedFilter != null )
            {
                _trackFilterProps = _selectedFilter.GetFilterProperties();
                _filterName = AGATMonoFilter.FilterNameForType( _selectedFilter.GetType() );
            }

            if( _micMode == MicMode.Track ) // if we're routing the mic through a track, we should update the streamToTrack object
            {
                streamToTrack.TargetTrack = _currentTrack;
            }
        }