home *** CD-ROM | disk | FTP | other *** search
/ Enter 2002 September / EnterCD 9_2002.iso / Multimedia / DJ Mix Pro 3.0 / djmixprosetup.exe / #setuppath# / plugins / sdk / Pulsing.h < prev   
Encoding:
C/C++ Source or Header  |  2002-07-22  |  1.1 KB  |  55 lines

  1. //
  2. //        DJ Mix Pro visualisation plugin example :
  3. //
  4. //      Pulsing Star
  5. //
  6. //      (C) 2001 Beatlock Technology
  7. //
  8. //
  9. //      See comments in "DJMixPlugin.h"
  10. //      but don't expect a real documentation
  11. //
  12. //      
  13. #if !defined PULSINGINCLUDED
  14. #define PULSINGINCLUDED
  15.  
  16. #include "DJMixPlugin.h"
  17.  
  18. class Pulsing : public DJMixPlugin {
  19. public:
  20.     //mandatory methods for every plugin
  21.     void Load(HINSTANCE instance, HWND parent);
  22.     void Unload();
  23.     void Refresh(double where, double closest,long which);
  24.     char* GetName() ;
  25.  
  26.     //storage and processing for this plugin
  27.     //windows things
  28.     HWND win;
  29.     HWND parent;
  30.     static long WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  31.     void Redraw(HDC    hdc);
  32.     
  33.     //temporary copies of Refresh infos
  34.     double where;
  35.     double closest;
  36.  
  37.     //to smooth bpm value
  38.     enum {NUMRECORDS =10};
  39.     double lastclosesthist[NUMRECORDS ];
  40.     double lastclosest;
  41.     long lastwhich;
  42.     int numrecorded;
  43.     double bpm;
  44.  
  45.     //to avoid unnecessary redraw
  46.     int lastBeatFactor;
  47.     
  48.     //name of plugin
  49.     static char* name;
  50.  
  51. };
  52.  
  53.  
  54. #endif
  55.