2003-07-28 11:32:32 +00:00
|
|
|
/*
|
|
|
|
|
* 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 interface
|
|
|
|
|
#ifndef HDSPMixerOutput_H
|
|
|
|
|
#define HDSPMixerOutput_H
|
|
|
|
|
|
|
|
|
|
#include <FL/Fl.H>
|
|
|
|
|
#include <FL/Fl_Group.H>
|
|
|
|
|
#include <FL/fl_draw.H>
|
2004-03-19 15:29:59 +00:00
|
|
|
#include <alsa/sound/hdsp.h>
|
2003-07-28 11:32:32 +00:00
|
|
|
#include "HDSPMixerFader.h"
|
|
|
|
|
#include "HDSPMixerPeak.h"
|
|
|
|
|
#include "HDSPMixerGain.h"
|
|
|
|
|
#include "HDSPMixerMeter.h"
|
|
|
|
|
#include "HDSPMixerOutputData.h"
|
|
|
|
|
#include "HDSPMixerWindow.h"
|
|
|
|
|
#include "pixmaps.h"
|
|
|
|
|
|
|
|
|
|
class HDSPMixerFader;
|
|
|
|
|
class HDSPMixerGain;
|
|
|
|
|
class HDSPMixerPeak;
|
|
|
|
|
class HDSPMixerMeter;
|
|
|
|
|
class HDSPMixerOutputData;
|
|
|
|
|
class HDSPMixerWindow;
|
|
|
|
|
|
2003-11-03 19:10:38 +00:00
|
|
|
|
2003-07-28 11:32:32 +00:00
|
|
|
class HDSPMixerOutput:public Fl_Group
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
int out_num;
|
2011-01-09 19:42:59 +01:00
|
|
|
char **labels_input, **labels_playback;
|
2003-11-03 19:10:38 +00:00
|
|
|
char **p_output_xpm;
|
2003-07-28 11:32:32 +00:00
|
|
|
HDSPMixerPeak *peak;
|
|
|
|
|
HDSPMixerWindow *basew;
|
|
|
|
|
void update_child(Fl_Widget& widget);
|
|
|
|
|
public:
|
2003-11-03 19:10:38 +00:00
|
|
|
HDSPMixerOutputData *data[3][3][8]; /* data[card][mode(ss/ds/qs)][preset number] */
|
2003-07-28 11:32:32 +00:00
|
|
|
HDSPMixerFader *fader;
|
|
|
|
|
HDSPMixerGain *gain;
|
|
|
|
|
HDSPMixerMeter *meter;
|
|
|
|
|
HDSPMixerOutput(int x, int y, int w, int h, int out);
|
|
|
|
|
void draw();
|
|
|
|
|
void draw_background();
|
|
|
|
|
void draw_background(int x, int y, int w, int h);
|
|
|
|
|
void setLabels();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|