Main.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #ifndef __MIKAMP_MAIN_H__
  2. #define __MIKAMP_MAIN_H__
  3. #include <windows.h>
  4. #include <stdio.h>
  5. #include "mikmod.h"
  6. #include "mplayer.h"
  7. #include "resource.h"
  8. #include "in2.h"
  9. #define INFO_CPAGES 3
  10. #define CPLAYFLG_LOOPALL (1ul<<0) // disables selective looping - loop everything!
  11. #define CPLAYFLG_PLAYALL (1ul<<1) // plays hidden patterns (tack onto end of the song)
  12. #define CPLAYFLG_FADEOUT (1ul<<2) // Fadeout the song before the end cometh?
  13. #define CPLAYFLG_STRIPSILENCE (1ul<<3) // Strip silence at the end of the song?
  14. #define CPLAYFLG_SEEKBYORDERS (1ul<<4) // Seek by orders instead of seconds
  15. #define CPLAYFLG_CONT_LOOP (1ul<<5) // continue after loop
  16. typedef struct tag_dlghdr
  17. {
  18. HWND hwndTab; // tab control
  19. HWND hwndDisplay; // current child dialog box
  20. int left,top;
  21. HWND apRes[INFO_CPAGES];
  22. UNIMOD *module;
  23. MPLAYER *seeker;
  24. int maxv;
  25. BOOL inUse, ownModule;
  26. BOOL *suse;
  27. } DLGHDR;
  28. typedef struct INFOBOX
  29. {
  30. HWND hwnd;
  31. DLGHDR dlg;
  32. struct INFOBOX *next;
  33. } INFOBOX;
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37. extern UBYTE config_nopan, config_savestr;
  38. extern MD_DEVICE drv_amp;
  39. extern MD_DEVICE drv_buffer;
  40. extern In_Module mikmod;
  41. extern UNIMOD *mf;
  42. extern MPLAYER *mp;
  43. // Defined in INFO.C
  44. // -----------------
  45. extern INFOBOX *infobox_list;
  46. extern void infoDlg(HWND hwnd, UNIMOD *m, BOOL activate, BOOL primiary);
  47. extern int config_info_x, config_info_y, config_track;
  48. // Defined in INFO.C
  49. // -----------------
  50. // defined in config.c
  51. extern UBYTE config_interp;
  52. extern UBYTE config_panrev;
  53. extern UBYTE config_cpu;
  54. extern uint config_srate, config_voices, config_playflag;
  55. extern int config_pansep, config_loopcount;
  56. extern UBYTE config_samplesize;
  57. extern UBYTE config_resonance;
  58. extern int config_fadeout;
  59. extern int config_tsel;
  60. extern int paused;
  61. // config.c shizat
  62. // ---------------
  63. extern void set_priority(void);
  64. extern void __cdecl config(HWND hwndParent);
  65. extern void __cdecl about(HWND hwndParent);
  66. extern void config_read();
  67. extern void config_write();
  68. extern void info_killseeker(HWND hwnd);
  69. int GetNumChannels();
  70. int AllowSurround();
  71. int GetThreadPriorityConfig();
  72. BOOL GetTypeInfo(LPCWSTR pszType, LPWSTR pszDest, INT cchDest);
  73. #ifdef __cplusplus
  74. };
  75. #endif
  76. //#define PLUGIN_NAME "Nullsoft Module Decoder"
  77. #define PLUGIN_VER L"2.94"
  78. #endif