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); }
// 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; } }
// 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; } }