~ubuntu-branches/debian/stretch/bristol/stretch

1.2.1 by Alessio Treglia
Import upstream version 0.60.0
1
/*
2
 *  Diverse Bristol audio routines.
3
 *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2011
1.1.12 by Alessio Treglia
Import upstream version 0.60.9
4
 *
1.2.1 by Alessio Treglia
Import upstream version 0.60.0
5
 *
6
 *   This program is free software; you can redistribute it and/or modify
7
 *   it under the terms of the GNU General Public License as published by
8
 *   the Free Software Foundation; either version 3 of the License, or
9
 *   (at your option) any later version.
10
 *
11
 *   This program is distributed in the hope that it will be useful,
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *   GNU General Public License for more details.
15
 *
16
 *   You should have received a copy of the GNU General Public License
17
 *   along with this program; if not, see <http://www.gnu.org/licenses/>.
18
 *
19
 */
20
#ifndef BRIGHTONMIXERMEMORY_H
1.1.1 by Barry deFreese
Import upstream version 0.40.1
21
#define BRIGHTONMIXERMEMORY_H
22
23
#include "brightonMini.h"
24
25
typedef float cOpaque[18];
26
typedef struct cClear {
27
	float gain;
28
	float preSend;
29
	float dynSens;
30
	float dynAtt;
31
	float dynDec;
32
	float dynSus;
33
	float dynRel;
34
	float treble;
35
	float tFreq;
36
	float mid;
37
	float bass;
38
	float bFreq;
39
	float postSend;
40
	float fxVol;
41
	float fxSpd;
42
	float fxDpt;
43
	float pan;
44
	float vol;
45
} cClear;
46
typedef union CParams {
47
	cOpaque opaque;
48
	cClear clear;
49
} cparams;
50
51
typedef struct ChanMem {
52
	char scratch[20];
53
	int inputSelect;
54
	int preSend[4];
55
	int dynamics;
56
	int filter;
57
	int postSend[4];
58
	int fxAlgo;
59
	cparams p;
60
	int mute;
61
	int solo;
62
	int boost;
63
	int outputSelect[16];
64
	int stereoBus;
65
	float data[30];
66
} chanMem;
67
68
typedef float bOpaque[FXP_COUNT];
69
typedef struct BClear {
70
	float igain;
71
	float speed;
72
	float depth;
73
	float m;
74
	float pan;
75
	float gain;
76
	int algorithm;
77
	float outputSelect[16];
78
	float pad[FXP_COUNT - 7 - 16];
79
} bClear;
80
typedef union BParams {
81
	bClear clear;
82
	bOpaque opaque;
83
} bparams;
84
typedef struct BusMem {
85
	char name[32]; // For eventual FX attachments.
86
	bparams b;
87
} busMem;
88
89
typedef float vbOpaque[3];
90
typedef struct VBClear {
91
	float vol;
92
	float left;
93
	float right;
94
} vbClear;
95
typedef union VBus {
96
	vbClear clear;
97
	vbOpaque opaque;
98
} vBus;
99
100
typedef struct MixerMemV1 {
101
	char name[20];
102
	int version;
103
	int chancount;
104
	busMem bus[16];
105
	vBus vbus[8];
106
	chanMem chan[MAX_CHAN_COUNT];
107
} mixerMem;
108
109
extern int saveMixerMemory(guiSynth *synth, char *name);
110
extern int loadMixerMemory(guiSynth *synth, char *name, int param);
111
extern void *initMixerMemory(int count);
112
extern int setMixerMemory(mixerMem *, int, int, float *, char *);
113
extern char* getMixerMemory(mixerMem *m, int op, int param);
114
115
116
#endif
117