| |
Visual plugin header file |
- AtomixVis.h -
#ifndef AtomixVisH
#define AtomixVisH
//---------------------------------------------------------------------------
#define ATOMIXVIS_VERSION 0
#define ATOMIXVIS_CHAN1 1
#define ATOMIXVIS_CHAN2 2
#define ATOMIXVIS_BOTHCHAN 0
//---------------------------------------------------------------------------
typedef struct
{
char *Name; // set this to the name of your plugin
int Version; // should be equal to 0
bool (*Main)(); // this function is called when the plugin is launched
// functions that can be used
int (*GetDatas)(int* buff,int nb,int channel); // return the next nb stereo 16 bits 44100 Hz PCM datas to be played
int (*GetBeats)(int* buff,int nb,int channel,int* maxbeat); // return the next nb 36 Hz datas representing the beat, as well as the maximum value for buff
bool (*GetSongName)(char *author,char *title,int channel); // buffs must be at least 128 char long
int (*GetActiveChannel)(void);
// variables that can be used
HINSTANCE hInst; // instance of the loaded dll
HWND hWndParent; // handle to the AtomixMP3 window
} AtomixVis;
//---------------------------------------------------------------------------
typedef AtomixVis* (*GetAtomixVisType)(void);
//__declspec( dllexport ) AtomixVis* GetAtomixVis(void);
//---------------------------------------------------------------------------
#endif
|