1 
2 /*
3  *  Diverse Bristol audio routines.
4  *  Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2012
5  *
6  *
7  *   This program is free software; you can redistribute it and/or modify
8  *   it under the terms of the GNU General Public License as published by
9  *   the Free Software Foundation; either version 3 of the License, or
10  *   (at your option) any later version.
11  *
12  *   This program is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *   GNU General Public License for more details.
16  *
17  *   You should have received a copy of the GNU General Public License
18  *   along with this program; if not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #define MIXER_VERSION 0
23 
24 #define MAX_CHAN_COUNT 60
25 #define MAX_BUS_COUNT 16
26 #define MAX_VBUS_COUNT 16
27 
28 #define CHAN_COUNT 16 /* This should be a parameter to the mixer. */
29 
30 #define DEF_BUS_COUNT 8 /* This should be a parameter to the mixer. */
31 #define DEF_VBUS_COUNT 8 /* This should be a parameter to the mixer. */
32 
33 #define FXP_COUNT 30
34 #define BUS_COUNT (FXP_COUNT * DEF_BUS_COUNT + 12)
35 
36 #define MASTER_COUNT 17
37 #define FUNCTION_COUNT 33
38 #define FIRST_DEV 0
39 #define PARAM_COUNT 80
40 #define MEM_COUNT 512 /* This is memory bytes per channel, for expansion */
41 #define ACTIVE_DEVS \
42 	(MEM_COUNT * MAX_CHAN_COUNT + BUS_COUNT + FUNCTION_COUNT + FIRST_DEV)
43 
44 #define DISPLAY_DEV 0
45 #define DISPLAY_PANEL 7
46 
47 #define FUNCTION_PANEL 2
48 #define VBUS_PANEL FUNCTION_PANEL
49 #define BUS_PANEL (FUNCTION_PANEL + 1)
50 #define CHAN_PANEL (BUS_PANEL + 1)
51 
52 #define DEVICE_COUNT (ACTIVE_DEVS)
53 
54 #define MM_INIT 0
55 #define MM_SAVE 1
56 #define MM_LOAD 2
57 #define MM_GET 3
58 #define MM_SET 4
59 
60 #define MM_GETLIST 0
61 
62 #define MM_S_GLOBAL 0
63 #define MM_S_BUS 1
64 #define MM_S_VBUS 2
65 #define MM_S_CHAN 2
66 
67