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