forked from fxsound2/fxsound-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathu_com.h
More file actions
154 lines (126 loc) · 5.23 KB
/
Copy pathu_com.h
File metadata and controls
154 lines (126 loc) · 5.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*
FxSound
Copyright (C) 2023 FxSound LLC
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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef _U_COM_H_
#define _U_COM_H_
#include "codedefs.h"
#include "pt_defs.h"
#include "c_dsps.h"
#include "slout.h"
/* Local Functions */
int com_ReadSerialNum(PT_HANDLE *, int, unsigned long *);
/* com handle definition */
struct comHdlType {
CSlout *slout_hdl;
CSlout *debug_slout_hdl;
char msg1[1024]; /* String for messages */
/* Card status */
int card_exists; /* Flag saying if the main card exists at board address */
int dongle_exists; /* Flag saying that a dongle is present */
int cracked_flag; /* Flag saying if we have been cracked */
int aes_exists; /* Flag saying if aes expansion is on card */
unsigned long serial_num; /* Serial number of card */
long main_num_samples; /* Number of samples of memory on main card */
long expanded_num_samples; /* Number of samples of memory on expansion */
int program_loaded; /* Flag saying if a program has been loaded */
int program_running; /* Flag saying if a program is running */
int processor_index; /* This is (processor_num - 1). Always runs from
* 0 to 7 consectutively
*/
int board_address; /* Used to reference the correct physical address
* for a particular processor number. Note that
* the board_address can be any number, depending
* on if the user has chosen a non-default physical
* address.
*/
long base_address;
char *executable;
char *arguments;
int io_type; /* PCFG_ANALOG, PCFG_AES, or PCFG_SPDIF */
int fx_link_flag; /* Flag saying if it is using the fx link */
int turned_off; /* Flag saying if com is turned off for development */
int debug_mode; /* Flag saying if write values should be printed */
long buffer_size; /* Size of buffers for WAV and DAW processing */
int softdsp_mode; /* 1 -> software DSP, 0 -> hardware DSP */
PT_HANDLE *comSftwr_hdl;
};
/*
* The following are the memory locations for the serial number and the
* different password types. Since the passwords can be stored on either the
* card or the dongle there are several different defines:
*
* 1. COM_PASS_HARD_ONCARD... : The EEPROM location on the hardware card to run
* the specific plug-in in hardware mode.
* 2. COM_PASS_SOFT_ONCARD... : The EEPROM location on the hardware card to run
* the specific plug-in in soft_dsp mode.
* 3. COM_PASS_SOFT_DONGLE... : The memory location on the dongle to run the specific
* plug-in in soft_dsp mode.
*/
#define COM_PASS_HARD_ONCARD_SERIAL_NUMBER 0
#define COM_PASS_SOFT_DONGLE_SERIAL_NUMBER 0
#define COM_PASS_HARD_ONCARD_STUDIO_SYSTEM 1
#define COM_PASS_SOFT_ONCARD_STUDIO_SYSTEM 12
#define COM_PASS_SOFT_DONGLE_STUDIO_SYSTEM 2
#define COM_PASS_HARD_ONCARD_REVERB 2
#define COM_PASS_SOFT_ONCARD_REVERB 13
#define COM_PASS_SOFT_DONGLE_REVERB 4
#define COM_PASS_HARD_ONCARD_DELAY 3
#define COM_PASS_SOFT_ONCARD_DELAY 14
#define COM_PASS_SOFT_DONGLE_DELAY 6
#define COM_PASS_HARD_ONCARD_CHORUS 4
#define COM_PASS_SOFT_ONCARD_CHORUS 15
#define COM_PASS_SOFT_DONGLE_CHORUS 8
#define COM_PASS_HARD_ONCARD_FLANGE 5
#define COM_PASS_SOFT_ONCARD_FLANGE 16
#define COM_PASS_SOFT_DONGLE_FLANGE 10
#define COM_PASS_HARD_ONCARD_PITCH 6
#define COM_PASS_SOFT_ONCARD_PITCH 17
#define COM_PASS_SOFT_DONGLE_PITCH 12
#define COM_PASS_HARD_ONCARD_PEQ 7
#define COM_PASS_SOFT_ONCARD_PEQ 18
#define COM_PASS_SOFT_DONGLE_PEQ 14
#define COM_PASS_HARD_ONCARD_LEADSYN 8
#define COM_PASS_SOFT_ONCARD_LEADSYN 19
#define COM_PASS_SOFT_DONGLE_LEADSYN 16
#define COM_PASS_HARD_ONCARD_PAN 9
#define COM_PASS_SOFT_ONCARD_PAN 20
#define COM_PASS_SOFT_DONGLE_PAN 18
#define COM_PASS_HARD_ONCARD_TREMOLO 10
#define COM_PASS_SOFT_ONCARD_TREMOLO 21
#define COM_PASS_SOFT_DONGLE_TREMOLO 20
#define COM_PASS_HARD_ONCARD_AURAL 11
#define COM_PASS_SOFT_ONCARD_AURAL 22
#define COM_PASS_SOFT_DONGLE_AURAL 22
#define COM_PASS_HARD_ONCARD_MAXIMIZE 12
#define COM_PASS_SOFT_ONCARD_MAXIMIZE 23
#define COM_PASS_SOFT_DONGLE_MAXIMIZE 24
#define COM_PASS_HARD_ONCARD_LEX 13
#define COM_PASS_SOFT_ONCARD_LEX 24
#define COM_PASS_SOFT_DONGLE_LEX 26
#define COM_PASS_HARD_ONCARD_APITCH 14
#define COM_PASS_SOFT_ONCARD_APITCH 25
#define COM_PASS_SOFT_DONGLE_APITCH 28
#define COM_PASS_HARD_ONCARD_CMP 15
#define COM_PASS_SOFT_ONCARD_CMP 26
#define COM_PASS_SOFT_DONGLE_CMP 30
#define COM_PASS_HARD_ONCARD_WID 16
#define COM_PASS_SOFT_ONCARD_WID 27
#define COM_PASS_SOFT_DONGLE_WID 32
#define COM_PASS_HARD_ONCARD_PLY 17
#define COM_PASS_SOFT_ONCARD_PLY 28
#define COM_PASS_SOFT_DONGLE_PLY 34
#define COM_PASS_HARD_ONCARD_GVB 18
#define COM_PASS_SOFT_ONCARD_GVB 29
#define COM_PASS_SOFT_DONGLE_GVB 36
#endif //_U_COM_H