|
Packit Service |
b98cfc |
/*
|
|
Packit Service |
b98cfc |
* qlo10k1 - GUI frontend for ld10k1
|
|
Packit Service |
b98cfc |
*
|
|
Packit Service |
b98cfc |
* Copyright (c) 2004 by Peter Zubaj
|
|
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit Service |
b98cfc |
*
|
|
Packit Service |
b98cfc |
*/
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
#ifndef STRPARAM_H
|
|
Packit Service |
b98cfc |
#define STRPARAM_H
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
#include <qstring.h>
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
class StrGlobal;
|
|
Packit Service |
b98cfc |
class LD10k1File;
|
|
Packit Service |
b98cfc |
class LD10k1DspFile;
|
|
Packit Service |
b98cfc |
class CardParamPrivate;
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
#define POINTINFO_MAX_CONN_PER_POINT 15
|
|
Packit Service |
b98cfc |
class CardParamPointInfo
|
|
Packit Service |
b98cfc |
{
|
|
Packit Service |
b98cfc |
public:
|
|
Packit Service |
b98cfc |
int id;
|
|
Packit Service |
b98cfc |
int type;
|
|
Packit Service |
b98cfc |
int io_idx;
|
|
Packit Service |
b98cfc |
int simple;
|
|
Packit Service |
b98cfc |
int multi;
|
|
Packit Service |
b98cfc |
unsigned int conn_count;
|
|
Packit Service |
b98cfc |
int io_type[POINTINFO_MAX_CONN_PER_POINT];
|
|
Packit Service |
b98cfc |
int patch[POINTINFO_MAX_CONN_PER_POINT];
|
|
Packit Service |
b98cfc |
int io[POINTINFO_MAX_CONN_PER_POINT];
|
|
Packit Service |
b98cfc |
};
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
class CardParamPatchInfo
|
|
Packit Service |
b98cfc |
{
|
|
Packit Service |
b98cfc |
public:
|
|
Packit Service |
b98cfc |
int patch_num;
|
|
Packit Service |
b98cfc |
int id;
|
|
Packit Service |
b98cfc |
QString patch_name;
|
|
Packit Service |
b98cfc |
};
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
class CardParam
|
|
Packit Service |
b98cfc |
{
|
|
Packit Service |
b98cfc |
CardParamPrivate *prv;
|
|
Packit Service |
b98cfc |
public:
|
|
Packit Service |
b98cfc |
QString CardName;
|
|
Packit Service |
b98cfc |
QString CardSocket;
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
StrGlobal *Structure;
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
CardParam(void);
|
|
Packit Service |
b98cfc |
CardParam(CardParam *from);
|
|
Packit Service |
b98cfc |
~CardParam(void);
|
|
Packit Service |
b98cfc |
StrGlobal *getStructure();
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int connect(void);
|
|
Packit Service |
b98cfc |
int disconnect(void);
|
|
Packit Service |
b98cfc |
int isConnected(void);
|
|
Packit Service |
b98cfc |
int testConnection(void);
|
|
Packit Service |
b98cfc |
int clearDSP(void);
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int load(LD10k1File *ld10k1file, int before, int *loaded, int *loaded_id);
|
|
Packit Service |
b98cfc |
int unload(int num);
|
|
Packit Service |
b98cfc |
int get(int patch_num, LD10k1File **ld10k1file);
|
|
Packit Service |
b98cfc |
int getPointsInfo(int **out, int *count);
|
|
Packit Service |
b98cfc |
int getPointInfo(int point_id, CardParamPointInfo *out);
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int conAdd(bool multi, bool simple, int from_type, int from_patch, int from_io, int to_type, int to_patch, int to_io, int *id);
|
|
Packit Service |
b98cfc |
int conDel(int from_type, int from_patch, int from_io, int *id);
|
|
Packit Service |
b98cfc |
QString errorStr(int err);
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int getFXCount(int *cnt);
|
|
Packit Service |
b98cfc |
int getInputCount(int *cnt);
|
|
Packit Service |
b98cfc |
int getOutputCount(int *cnt);
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int getFX(int i, QString &name);
|
|
Packit Service |
b98cfc |
int getInput(int i, QString &name);
|
|
Packit Service |
b98cfc |
int getOutput(int i, QString &name);
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int getPInputCount(int pnum, int *cnt);
|
|
Packit Service |
b98cfc |
int getPOutputCount(int pnum, int *cnt);
|
|
Packit Service |
b98cfc |
int getPInput(int pnum, int i, QString &name);
|
|
Packit Service |
b98cfc |
int getPOutput(int pnum, int i, QString &name);
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int getPatchesInfo(CardParamPatchInfo ***pi, int *cnt);
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
int getDspConfig(LD10k1DspFile **dc);
|
|
Packit Service |
b98cfc |
int putDspConfig(LD10k1DspFile *dc);
|
|
Packit Service |
b98cfc |
};
|
|
Packit Service |
b98cfc |
|
|
Packit Service |
b98cfc |
#endif // STRPARAM_H
|