Blame hdspmixer/src/HDSPMixerOutputs.cxx

Packit Service b98cfc
/*
Packit Service b98cfc
 *   HDSPMixer
Packit Service b98cfc
 *    
Packit Service b98cfc
 *   Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
Packit Service b98cfc
 *    
Packit Service b98cfc
 *   This program is free software; you can redistribute it and/or modify
Packit Service b98cfc
 *   it under the terms of the GNU General Public License as published by
Packit Service b98cfc
 *   the Free Software Foundation; either version 2 of the License, or
Packit Service b98cfc
 *   (at your option) any later version.
Packit Service b98cfc
 *
Packit Service b98cfc
 *   This program is distributed in the hope that it will be useful,
Packit Service b98cfc
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service b98cfc
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service b98cfc
 *   GNU General Public License for more details.
Packit Service b98cfc
 *
Packit Service b98cfc
 *   You should have received a copy of the GNU General Public License
Packit Service b98cfc
 *   along with this program; if not, write to the Free Software
Packit Service b98cfc
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit Service b98cfc
 */
Packit Service b98cfc
Packit Service b98cfc
#pragma implementation
Packit Service b98cfc
#include "HDSPMixerOutputs.h"
Packit Service b98cfc
Packit Service b98cfc
HDSPMixerOutputs::HDSPMixerOutputs(int x, int y, int w, int h, int nchans):Fl_Group(x, y, w, h)
Packit Service b98cfc
{
Packit Service b98cfc
    int i;
Packit Service b98cfc
    for (i = 0; i < HDSP_MAX_CHANNELS+2; i += 2) {
Packit Service b98cfc
	strips[i] = new HDSPMixerOutput((i*STRIP_WIDTH), y, STRIP_WIDTH, SMALLSTRIP_HEIGHT, i); 
Packit Service b98cfc
	strips[i+1] = new HDSPMixerOutput(((i+1)*STRIP_WIDTH), y, STRIP_WIDTH, SMALLSTRIP_HEIGHT, i+1);
Packit Service b98cfc
	/* Setup linked stereo channels */
Packit Service b98cfc
	strips[i]->fader->relative = strips[i+1]->fader;
Packit Service b98cfc
	strips[i+1]->fader->relative = strips[i]->fader;
Packit Service b98cfc
	strips[i]->fader->gain = strips[i]->gain;
Packit Service b98cfc
	strips[i+1]->fader->gain = strips[i+1]->gain;
Packit Service b98cfc
	
Packit Service b98cfc
    }
Packit Service b98cfc
    empty_aebo[0] = new HDSPMixerEmpty((nchans-6)*STRIP_WIDTH, y, 2*STRIP_WIDTH, SMALLSTRIP_HEIGHT, 0);
Packit Service b98cfc
    empty_aebo[1] = new HDSPMixerEmpty((nchans-4)*STRIP_WIDTH, y, 2*STRIP_WIDTH, SMALLSTRIP_HEIGHT, 0);
Packit Service b98cfc
    empty = new HDSPMixerEmpty(nchans*STRIP_WIDTH, y, 2*STRIP_WIDTH, SMALLSTRIP_HEIGHT, 0);
Packit Service b98cfc
    end();
Packit Service b98cfc
    resizable(NULL);
Packit Service b98cfc
}
Packit Service b98cfc