#pragma once
extern "C"
{
extern unsigned int synthGetSize();
extern void synthInit(void *pthis, const void *patchmap, int samplerate=44100);
extern void synthRender(void *pthis, void *buf, int smp, void *buf2=0, int add=0);
extern void synthProcessMIDI(void *pthis, const void *ptr);
extern void synthSetGlobals(void *pthis, const void *ptr);
extern void synthGetPoly(void *pthis, void *dest);
extern void synthGetPgm(void *pthis, void *dest);
extern void synthSetVUMode(void *pthis, int mode); extern void synthGetChannelVU(void *pthis, int ch, float *l, float *r); extern void synthGetMainVU(void *pthis, float *l, float *r);
extern long synthGetFrameSize(void *pthis);
#ifdef RONAN
extern void synthSetLyrics(void *pthis, const char **ptr);
#endif
}