
#ifndef _VISMOD_H_
#define _VISMOD_H_

#include<windows.h>

#define BPM_TIMER_ID 1000
#define AGC_TIMER_ID 1001

typedef struct VisModule {

	HINSTANCE hDllInstance; // filled by app
	wchar_t* confPath; // filled by app
	BOOL (WINAPI *MainDlgProc)(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); // filled by app

	void (*InitVisMod)();
	BOOL (*VisDlgProc)(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); // handle window messages!
	void (*ReadAudioSamples)(LPWAVEHDR pWaveHdr,int nLevel,int bpm);
	void (*Quit)(); // called when unloading (no need to destroy window, it will be done by app)

	HWND hVisDlg; // set this after creating the dialog

} VisModule;

#endif