-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.h
executable file
·62 lines (50 loc) · 1.27 KB
/
Settings.h
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
#if !defined(AFX_SETTINGS_H__2821D12F_685A_40A4_8AA7_BB007D905AFB__INCLUDED_)
#define AFX_SETTINGS_H__2821D12F_685A_40A4_8AA7_BB007D905AFB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Settings.h : header file
//
#define MAXDEVICES 5
#define DEVICE_NODEVICE 0
#define DEVICE_VG88 1
#define DEVICE_VG8 2
#define DEVICE_VG8EX 3
#define DEVICE_VG8S1 4
#define DEVICE_VGA7 5
#define DEVICE_VGA5 6
struct SDevice
{
int type; // VG-8, VG-88 ...
char name[32]; // Name that appear on the interface
BYTE deviceID; // 1-38
int midiInputPort;
int midiOutputPort;
int auditionPatch;
};
struct SGeneralSetting
{
int x;
int y;
int cx;
int cy;
bool isZoomed;
bool chainWndVisible;
bool libTreeWndVisible;
bool patchWndVisible;
};
/////////////////////////////////////////////////////////////////////////////
// CSettings
class CSettings
{
public:
int devicesCount;
SDevice devices[MAXDEVICES];
SGeneralSetting generalSetting;
CSettings();
int Write();
int Read();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SETTINGS_H__2821D12F_685A_40A4_8AA7_BB007D905AFB__INCLUDED_)