1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| const int BBP_RENDER = 1; // Render the scene.
const int BBP_CREATE = 2; // Retrieve Title, Name, Version, Render mode.
const int BBP_INIT = 3; // Init the OpenGL.
const int BBP_SIZE = 4; // The size of the control has changed.
const int BBP_KEYBOARD = 5; // All keyborad message.
const int BBP_MOUSE = 6; // All mouse messages.
const int BBP_DESTROY = 7; // Free Up resources.
const int BBP_NEWSOUND = 8; // We are playing a new sound file.
const int BBP_GDIPLUS = 0; // GDImage GDIPLUS compatible mode.
const int BBP_OPENGL = 1; // OpenGL mode.
const int BBP_DIRECTX = 2; // DirectX mode (for future extension).
const int BBP_SUCCESS = 0;
const int BBP_ERROR = -1;
typedef struct {
UINT msg; // The plugin's message (see above constant list).
HWND parent; // The parent window handle.
HDC dc; // The parent window DC (while in play mode).
HGLRC rc; // The parent OpenGL RC (while in play mode).
WORD lpeak; // The left audio channel peak value (while in play mode).
WORD rpeak; // The right audio channel peak value (while in play mode).
char title[32]; // Plugin's name or title.
char author[64]; // Plugin's author name.
DWORD version; // LOWRD major, HIWRD minor.
long renderto; // BBP_GDIPLUS, BBP_OPENGL, BBP_DIRECTX.
long backargb; // Default ARGB color background.
float* fftdata; // dword pointer to the FFT() as single array.
WORD fftsize; // Size of the FFT array.
UINT winmsg; // True Windows message.
WPARAM wparam; // wParam
LPARAM lparam; // lParam
short* wimdata; // dword pointer to the wave MM_WIM_DATA.
QWORD medialength; // Media length.
QWORD mediapos; // Media pos.
char reserved[50]; // Reserved for future extension.
} BBPLUGIN; |
Partager