WinampAttributes.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include "main.h"
  2. #include "api.h"
  3. #include "WinampAttributes.h"
  4. #include "InternetConfigGroup.h"
  5. #include "VideoConfigGroup.h"
  6. #include "PlaybackConfigGroup.h"
  7. #include "EQConfigGroup.h"
  8. #include "DeveloperConfigGroup.h"
  9. #include "AccessibilityConfigGroup.h"
  10. #include "../config/config.h"
  11. extern Config config;
  12. /* --- Video --- */
  13. VideoConfigGroup videoConfigGroup;
  14. _bool config_video_overlays(true);
  15. _bool config_video_yv12(true);
  16. _bool config_video_vsync2(true);
  17. _bool config_video_ddraw(true);
  18. _bool config_video_gdiplus(false);
  19. _mutable_bool config_video_autoopen(true);
  20. _mutable_bool config_video_autoclose(true);
  21. _mutable_bool config_video_auto_fs(false);
  22. /* --- Internet --- */
  23. InternetConfigGroup internetConfigGroup;
  24. _bool config_proxy80(false);
  25. /* --- Playback --- */
  26. PlaybackConfigGroup playbackConfigGroup;
  27. _unsigned config_audio_bits(16);
  28. _bool config_audio_mono(false);
  29. _bool config_audio_surround(true);
  30. _bool config_audio_dither(true);
  31. _bool config_replaygain(false);
  32. _unsigned config_replaygain_mode(RG_MODE_GAIN_NOCLIP);
  33. _unsigned config_replaygain_source(RG_SOURCE_TRACK);
  34. _bool config_replaygain_preferred_only(false);
  35. _float config_replaygain_non_rg_gain(-6);
  36. _float config_replaygain_preamp(0);
  37. _int config_playback_thread_priority(THREAD_PRIORITY_HIGHEST);
  38. /* --- EQ --- */
  39. EQConfigGroup eqConfigGroup;
  40. _int config_eq_frequencies(EQ_FREQUENCIES_WINAMP);
  41. _int config_eq_type(EQ_TYPE_4FRONT);
  42. _bool config_eq_limiter(true);
  43. /* --- Developer --- */
  44. DeveloperConfigGroup developerConfigGroup;
  45. /* --- Accessibility --- */
  46. AccessibilityConfigGroup accessibilityConfigGroup;
  47. _bool config_accessibility_modalbeep(false);
  48. _bool config_accessibility_modalflash(true);
  49. void RegisterConfigGroups()
  50. {
  51. config.RegisterGroup(&internetConfigGroup);
  52. config.RegisterGroup(&videoConfigGroup);
  53. config.RegisterGroup(&playbackConfigGroup);
  54. config.RegisterGroup(&eqConfigGroup);
  55. config.RegisterGroup(&developerConfigGroup);
  56. config.RegisterGroup(&accessibilityConfigGroup);
  57. }