#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
typedef void (DSIOCALLBACK)(void *parm, float *buf, unsigned long len);
unsigned long dsInit(DSIOCALLBACK *callback, void *parm, void *hWnd);
void dsClose();
signed long dsGetCurSmp();
void dsSetVolume(float vol);
void dsTick();
void dsLock();
void dsUnlock();
unsigned int synthGetSize();
void synthInit(void *pthis, const void *patchmap, int samplerate=44100);
void synthSetGlobals(void *pthis, const void *ptr);
void synthSetLyrics(void *pthis, const char **ptr);
void synthRender(void *pthis, void *buf, int smp, void *buf2 = 0, int add = 0);
void synthProcessMIDI(void *pthis, const void *ptr);
void synthSetVUMode(void *pthis, int mode);
void synthGetChannelVU(void *pthis, int ch, float *l, float *r);
void synthGetMainVU(void *pthis, float *l, float *r);
#ifdef __cplusplus
}
#endif