aboutsummaryrefslogtreecommitdiff
path: root/utils/winmm_drv/config/regconfig.h
blob: 2dac28a4d4d4ea1acbe9b919743e4794b732f5ed (plain)
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
#pragma once
#ifndef REG_SETUP_HHHH
#define REG_SETUP_HHHH

#include <windef.h>
#include <winreg.h>

#ifdef __cplusplus
extern "C"
{
#endif

typedef struct DriverSettings_t
{
    BOOL    useExternalBank;
    int     bankId;
    WCHAR   bankPath[MAX_PATH];
    int     emulatorId;

    BOOL    flagDeepTremolo;
    BOOL    flagDeepVibrato;

    BOOL    flagSoftPanning;
    BOOL    flagScaleModulators;
    BOOL    flagFullBrightness;

    int     volumeModel;
    int     chanAlloc;
    int     numChips;
    int     num4ops;

    UINT    outputDevice;

    UINT    gain100;
} DriverSettings;

extern const WCHAR g_adlSignalMemory[];

extern void setupDefault(DriverSettings *setup);
extern void loadSetup(DriverSettings *setup);
extern void saveSetup(DriverSettings *setup);

extern void saveGain(DriverSettings *setup);
extern void getGain(DriverSettings *setup);


#define DRV_SIGNAL_RELOAD_SETUP 1
#define DRV_SIGNAL_RESET_SYNTH  2
#define DRV_SIGNAL_UPDATE_GAIN  3

// Client
/**
 * @brief Ping the running driver to immediately reload the settings
 */
extern void sendSignal(int sig);

#ifdef ENABLE_REG_SERVER
// Server
extern void openSignalListener();
extern int  hasReloadSetupSignal();
extern void resetSignal();
extern void closeSignalListener();
#endif

#ifdef __cplusplus
}
#endif


#endif