main.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef NULLSOFT_IN_FLAC_MAIN_H
  2. #define NULLSOFT_IN_FLAC_MAIN_H
  3. #define PLUGIN_VER L"3.2"
  4. #include <windows.h>
  5. extern HANDLE killswitch;
  6. #include "../Winamp/in2.h"
  7. extern In_Module plugin;
  8. DWORD CALLBACK FLACThread(LPVOID param);
  9. extern int pan, volume;
  10. extern volatile int currentSongLength;
  11. void CALLBACK APCPause(ULONG_PTR data);
  12. void CALLBACK APCSeek(ULONG_PTR data);
  13. void ResetMetadataCache();
  14. #include <FLAC/all.h>
  15. void InterleaveAndTruncate(const FLAC__int32 *const buffer[], void *_output, int bps, int channels, int blocksize, double gain=1.0);
  16. extern const wchar_t *winampINI;
  17. char *BuildExtensions(const char *extensions);
  18. extern bool config_average_bitrate;
  19. extern bool fixBitrate;
  20. extern int m_force_seek; // set this to something other than -1 to make the file start from the given time (in ms)
  21. extern wchar_t *lastfn;
  22. // {B6CB4A7C-A8D0-4c55-8E60-9F7A7A23DA0F}
  23. static const GUID playbackConfigGroupGUID =
  24. {
  25. 0xb6cb4a7c, 0xa8d0, 0x4c55, { 0x8e, 0x60, 0x9f, 0x7a, 0x7a, 0x23, 0xda, 0xf }
  26. };
  27. #define DEFAULT_EXTENSIONS "FLAC"
  28. #define DEFAULT_EXTENSIONSW L"FLAC"
  29. #endif