示例#1
0
 public void close()
 {
     trackPanel          = null;
     track.trackView     = null;
     track               = null;
     trackData.trackView = null;
     trackData           = null;
 }
示例#2
0
//- track management ----------------------------------------------------------

        public void addTrackView(X1Track track, int duration)
        {
            trackWidth = duration * zoomfactor;
            TrackView trackView = new TrackView(this, track, trackWidth);

            trackView.Location = new Point(0, tracks.Count * TrackView.TRACKHEIGHT + ruler.Height);
            tracksHeight      += TrackView.TRACKHEIGHT;
            this.Controls.Add(trackView);
            tracks.Add(trackView);
            this.Height++;              //trigger a resize to draw scrollbars if needed
        }
示例#3
0
//-----------------------------------------------------------------------------

        public void addMixerStrip(X1Track track)
        {
            MixerStrip strip = new MixerStrip(this, track);

            mixerStrips.Add(strip);
            stripPanel.Controls.Add(strip);
            stripCount++;

            int xpos = 0;

            foreach (MixerStrip mixStrip in mixerStrips)
            {
                mixStrip.Location = new Point(xpos, 0);
                xpos += MixerStrip.STRIPWIDTH;
            }
            stripPanel.Size  = new Size(xpos, MixerStrip.STRIPHEIGHT);
            this.MaximumSize = new Size((this.Right - mixmaster.Left) + stripPanel.Width, this.Height);
            updateScrollBar();
            Invalidate();
        }
示例#4
0
        public TrackView(TrackPanel _trackPanel, X1Track _track, int width)
        {
            trackPanel      = _trackPanel;
            track           = _track;
            track.trackView = this;
            trackName       = track.name;

            InitializeComponent();
            this.Width       = width + TRACKHEADERWIDTH + 2;
            lblTrackNum.Text = (track.number + 1).ToString("D");
            trackPanel.signalsWindow.setTooltip(lblTrackNum, trackName);

            trackData          = new TrackData(this);
            trackData.Width    = width;
            trackData.Location = new Point(TRACKHEADERWIDTH, 0);
            this.Controls.Add(trackData);

            isMuted     = false;
            isSoloing   = false;
            isRecording = false;
        }
示例#5
0
        //cons
        public MixerStrip(MixerWindow _mixer, X1Track _track)
        {
            mixer = _mixer;
            track = _track;
            //track.mixerStrip = this;
            //trackNumber = track.number;

            InitializeComponent();

            //String trackString = (track.number + 1).ToString("D");
            //lblTrackNum.Text = trackString;
            //txtTrackName.Text = "Track " + trackString;

            //cbxSource.DataSource = track.getInputDeviceList();
            //cbxSource.SelectedIndex = 0;
            deviceNumber = -1;

            level = 1.0f;
            pan   = 0.5f;

            isMuted     = false;
            isSoloing   = false;
            isRecording = false;
        }
示例#6
0
 public void close()
 {
     mixer            = null;
     track.mixerStrip = null;
     track            = null;
 }