2016-04-13 01:16:25 -03:00
|
|
|
#ifndef _SCCore_h_
|
|
|
|
#define _SCCore_h_
|
|
|
|
|
|
|
|
// Static single instance - duplicate library to temp path for unique instance
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
class SCCore {
|
|
|
|
unsigned long serial;
|
|
|
|
char* path;
|
|
|
|
void* handle;
|
2016-04-13 01:16:25 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
public:
|
|
|
|
int (*TG_initialize)(int i); // i = 0, returns negative on failure
|
2016-04-13 01:16:25 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
// void (* TG_terminate)(); // Unused
|
2016-04-13 01:16:25 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
void (*TG_activate)(float sampleRate, int blockSize);
|
|
|
|
|
|
|
|
void (*TG_deactivate)(); // Unused - hopefully cleans up
|
2016-04-13 01:16:25 -03:00
|
|
|
|
|
|
|
void (*TG_setSampleRate)(float sampleRate);
|
|
|
|
|
|
|
|
void (*TG_setMaxBlockSize)(unsigned int blockSize);
|
|
|
|
|
|
|
|
void (*TG_flushMidi)(); // Called after applying presets
|
|
|
|
|
|
|
|
void (*TG_setInterruptThreadIdAtThisTime)();
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
// void (*TG_PMidiIn)(MpPacket *, int count); // Unknown
|
2016-04-13 01:16:25 -03:00
|
|
|
|
|
|
|
void (*TG_ShortMidiIn)(unsigned int eventCode, unsigned int deltaFrames);
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
void (*TG_LongMidiIn)(const unsigned char* sysEx, unsigned int deltaFrames);
|
2016-04-13 01:16:25 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
// void (*TG_isFatalError)(int errCode); // Unused
|
2016-04-13 01:16:25 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
// void (*TG_getErrorStrings)(int errCode); // Unused
|
2016-04-13 01:16:25 -03:00
|
|
|
|
|
|
|
unsigned int (*TG_XPgetCurTotalRunningVoices)(); // Unused
|
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
// void (*TG_XPsetSystemConfig)();
|
2016-04-13 01:16:25 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
// void (*TG_XPgetCurSystemConfig)();
|
2016-04-13 01:16:25 -03:00
|
|
|
|
2022-02-07 02:49:27 -03:00
|
|
|
void (*TG_Process)(float* left, float* right, unsigned int count);
|
2016-04-13 01:16:25 -03:00
|
|
|
|
|
|
|
SCCore();
|
|
|
|
~SCCore();
|
2022-02-07 02:49:27 -03:00
|
|
|
|
|
|
|
bool Load(const char* path, bool dupe);
|
2016-04-13 01:16:25 -03:00
|
|
|
void Unload();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|