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 HDSPMixerCard_H
|
|
|
|
|
#define HDSPMixerCard_H
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <alsa/asoundlib.h>
|
2004-03-19 15:29:59 +00:00
|
|
|
#include <alsa/sound/hdsp.h>
|
2011-01-09 19:42:59 +01:00
|
|
|
#include <alsa/sound/hdspm.h>
|
2003-07-28 11:32:32 +00:00
|
|
|
#include "defines.h"
|
2011-01-27 11:41:47 +01:00
|
|
|
#include "channelmap.h"
|
2003-07-28 11:32:32 +00:00
|
|
|
#include "HDSPMixerWindow.h"
|
|
|
|
|
|
|
|
|
|
class HDSPMixerWindow;
|
|
|
|
|
|
|
|
|
|
class HDSPMixerCard
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
snd_ctl_t *cb_handle;
|
|
|
|
|
snd_async_handler_t *cb_handler;
|
2011-01-09 19:42:59 +01:00
|
|
|
|
2003-07-28 11:32:32 +00:00
|
|
|
public:
|
|
|
|
|
HDSPMixerWindow *basew;
|
|
|
|
|
char name[6];
|
2011-01-09 19:42:59 +01:00
|
|
|
HDSPMixerCard(int cardtype, int id);
|
|
|
|
|
int channels_input, channels_playback, window_width, window_height, card_id;
|
|
|
|
|
int type;
|
|
|
|
|
char *channel_map_input, *channel_map_playback;
|
2003-07-28 11:32:32 +00:00
|
|
|
char *dest_map;
|
2011-01-09 19:42:59 +01:00
|
|
|
char *meter_map_input, *meter_map_playback;
|
2003-11-03 19:10:38 +00:00
|
|
|
int speed_mode;
|
2003-11-24 14:48:21 +00:00
|
|
|
int playbacks_offset;
|
2003-07-28 11:32:32 +00:00
|
|
|
void setMode(int mode);
|
|
|
|
|
int initializeCard(HDSPMixerWindow *w);
|
|
|
|
|
int getSpeed();
|
|
|
|
|
int getAutosyncSpeed();
|
|
|
|
|
void actualizeStrips();
|
|
|
|
|
void adjustSettings();
|
2003-11-03 19:10:38 +00:00
|
|
|
void getAeb();
|
|
|
|
|
hdsp_9632_aeb_t h9632_aeb;
|
2003-07-28 11:32:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|