mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-22 06:59:56 -05:00
This adds "LPBK" buttons to the output strip channels for toggling the hardware output loopback functionality recently added for HDSP9632. The preset data is just appended to the preset file so that it can still be loaded in older versions.
45 lines
1.9 KiB
C++
45 lines
1.9 KiB
C++
/*
|
|
* HDSPMixer
|
|
*
|
|
* Copyright (C) 2003 Thomas Charbonnel (thomas@undata.org)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#pragma implementation
|
|
#include "HDSPMixerOutputs.h"
|
|
|
|
HDSPMixerOutputs::HDSPMixerOutputs(int x, int y, int w, int h, int nchans):Fl_Group(x, y, w, h)
|
|
{
|
|
int i;
|
|
for (i = 0; i < HDSP_MAX_CHANNELS+2; i += 2) {
|
|
strips[i] = new HDSPMixerOutput((i*STRIP_WIDTH), y, STRIP_WIDTH, SMALLSTRIP_HEIGHT, i);
|
|
strips[i+1] = new HDSPMixerOutput(((i+1)*STRIP_WIDTH), y, STRIP_WIDTH, SMALLSTRIP_HEIGHT, i+1);
|
|
/* Setup linked stereo channels */
|
|
strips[i]->fader->relative = strips[i+1]->fader;
|
|
strips[i+1]->fader->relative = strips[i]->fader;
|
|
strips[i]->fader->gain = strips[i]->gain;
|
|
strips[i+1]->fader->gain = strips[i+1]->gain;
|
|
strips[i]->loopback->relative = strips[i+1]->loopback;
|
|
strips[i+1]->loopback->relative = strips[i]->loopback;
|
|
|
|
}
|
|
empty_aebo[0] = new HDSPMixerEmpty((nchans-6)*STRIP_WIDTH, y, 2*STRIP_WIDTH, SMALLSTRIP_HEIGHT, 0);
|
|
empty_aebo[1] = new HDSPMixerEmpty((nchans-4)*STRIP_WIDTH, y, 2*STRIP_WIDTH, SMALLSTRIP_HEIGHT, 0);
|
|
empty = new HDSPMixerEmpty(nchans*STRIP_WIDTH, y, 2*STRIP_WIDTH, SMALLSTRIP_HEIGHT, 0);
|
|
end();
|
|
resizable(NULL);
|
|
}
|
|
|