home *** CD-ROM | disk | FTP | other *** search
- //
- // DJ Mix Pro visualisation plugin example :
- //
- // Pulsing Star
- //
- // (C) 2001 Beatlock Technology
- //
- //
- // See comments in "DJMixPlugin.h"
- // but don't expect a real documentation
- //
- //
- #if !defined PULSINGINCLUDED
- #define PULSINGINCLUDED
-
- #include "DJMixPlugin.h"
-
- class Pulsing : public DJMixPlugin {
- public:
- //mandatory methods for every plugin
- void Load(HINSTANCE instance, HWND parent);
- void Unload();
- void Refresh(double where, double closest,long which);
- char* GetName() ;
-
- //storage and processing for this plugin
- //windows things
- HWND win;
- HWND parent;
- static long WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
- void Redraw(HDC hdc);
-
- //temporary copies of Refresh infos
- double where;
- double closest;
-
- //to smooth bpm value
- enum {NUMRECORDS =10};
- double lastclosesthist[NUMRECORDS ];
- double lastclosest;
- long lastwhich;
- int numrecorded;
- double bpm;
-
- //to avoid unnecessary redraw
- int lastBeatFactor;
-
- //name of plugin
- static char* name;
-
- };
-
-
- #endif
-