bassloud.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. BASSloud 2.4 C/C++ header file
  3. Copyright (c) 2023 Un4seen Developments Ltd.
  4. See the BASSLOUD.CHM file for more detailed documentation
  5. */
  6. #ifndef BASSLOUDNESS_H
  7. #define BASSLOUDNESS_H
  8. #include "bass.h"
  9. #if BASSVERSION!=0x204
  10. #error conflicting BASS and BASSLOUDNESS versions
  11. #endif
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #ifndef BASSLOUDDEF
  16. #define BASSLOUDDEF(f) WINAPI f
  17. #endif
  18. typedef DWORD HLOUDNESS; // loudness handle
  19. // BASS_Loudness_Start flags / BASS_Loudness_GetLevel modes
  20. #define BASS_LOUDNESS_CURRENT 0
  21. #define BASS_LOUDNESS_INTEGRATED 1
  22. #define BASS_LOUDNESS_RANGE 2
  23. #define BASS_LOUDNESS_PEAK 4
  24. #define BASS_LOUDNESS_TRUEPEAK 8
  25. #define BASS_LOUDNESS_AUTOFREE 0x8000
  26. DWORD BASSLOUDDEF(BASS_Loudness_GetVersion)(void);
  27. HLOUDNESS BASSLOUDDEF(BASS_Loudness_Start)(DWORD handle, DWORD flags, int priority);
  28. BOOL BASSLOUDDEF(BASS_Loudness_Stop)(DWORD handle);
  29. BOOL BASSLOUDDEF(BASS_Loudness_SetChannel)(HLOUDNESS handle, DWORD channel, int priority);
  30. DWORD BASSLOUDDEF(BASS_Loudness_GetChannel)(HLOUDNESS handle);
  31. BOOL BASSLOUDDEF(BASS_Loudness_GetLevel)(HLOUDNESS handle, DWORD mode, float *level);
  32. BOOL BASSLOUDDEF(BASS_Loudness_GetLevelMulti)(HLOUDNESS *handles, DWORD count, DWORD mode, float *level);
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif