1
0

config.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef NULLSOFT_CONFIGH
  2. #define NULLSOFT_CONFIGH
  3. #include "dsound.h"
  4. #ifdef WM_DEFINE_CONFIG
  5. #define DEFVAL(x) =x
  6. #define CFGEXTERN
  7. #else
  8. #define DEFVAL(x)
  9. #define CFGEXTERN extern
  10. #endif
  11. #define CFG(type, name, defval) CFGEXTERN type config_##name DEFVAL(defval); CFGEXTERN type default_##name DEFVAL(defval);
  12. CFG(bool, lowmemory, true);
  13. CFG(bool, clock, true);
  14. CFG(bool, video_dedicated_thread, true);
  15. CFG(bool, video_early, false);
  16. CFG(int, video_early_pad, 500);
  17. CFG(bool, video_outoforder, true);
  18. CFG(bool, video_catchup, true);
  19. CFG(int, video_jitter, 5);
  20. CFG(int, video_drop_threshold, 15);
  21. CFG(size_t, video_cache_frames, 16);
  22. CFG(bool, video_notifylate, true);
  23. CFG(bool, video_framedropoffset, false);
  24. //CFG(bool, video_flip, false);
  25. CFG(bool, audio_outoforder, false);
  26. CFG(bool, audio_dedicated_thread, true);
  27. CFG(int, audio_early_pad, 0);
  28. CFG(bool, audio_early, false);
  29. CFG(size_t, audio_cache_frames, 12);
  30. CFG(DWORD, audio_num_channels, DSSPEAKER_5POINT1);
  31. CFG(bool, no_silent, false);
  32. CFG(bool, untrusted_ok, false);
  33. CFG(bool, http_metadata, false);
  34. CFG(size_t, buffer_time, 5000);
  35. CFG(int, col1, -1);
  36. CFG(int, col2, -1);
  37. extern bool config_no_video;
  38. CFG(bool, extra_asx_extensions, false);
  39. void ReadConfig(), WriteConfig(), DefaultConfig();
  40. #endif