Constants.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*\
  2. |*| Copyright 2015-2016 bill-auger <https://github.com/bill-auger/av-caster/issues>
  3. |*|
  4. |*| This file is part of the AvCaster program.
  5. |*|
  6. |*| AvCaster is free software: you can redistribute it and/or modify
  7. |*| it under the terms of the GNU General Public License version 3
  8. |*| as published by the Free Software Foundation.
  9. |*|
  10. |*| AvCaster is distributed in the hope that it will be useful,
  11. |*| but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. |*| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. |*| GNU General Public License for more details.
  14. |*|
  15. |*| You should have received a copy of the GNU General Public License
  16. |*| along with AvCaster. If not, see <http://www.gnu.org/licenses/>.
  17. \*/
  18. #ifndef _CONSTANTS_H_
  19. #define _CONSTANTS_H_
  20. // enable standard features
  21. // #define DISABLE_MEDIA
  22. // #define SCREEN_ONLY
  23. // #define CAMERA_ONLY
  24. // #define TEXT_ONLY
  25. // #define IMAGE_ONLY
  26. // #define TRAY_ICON // TODO: requires juce_gui_extras package
  27. #define TEXT_BIN_NYI 1
  28. #define IMAGE_BIN_NYI 0 // faux src
  29. #define DISABLE_GUI_CONFIG_NYI
  30. #define DISABLE_AUDIO (! JUCE_LINUX) // replace audio-real-source with fakesrc
  31. #define DISABLE_PREVIEW (! JUCE_LINUX) // replace preview-sink with fakesink
  32. //#define DISABLE_OUTPUT // replace filesink or rtmpsink with fakesink
  33. #define GST_COMPOSITOR_BUG
  34. // #define NO_DYNAMIC_MEDIA_Z_ORDER
  35. #define DISABLE_CHAT
  36. #define SEED_IRC_NETWORKS ((!defined(DISABLE_CHAT)) && 0)
  37. #define SUPRESS_GREETING_MESSAGES
  38. #define SUPRESS_ALERTS
  39. // #define CHATLIST_KICK_BTN_NYI
  40. // debugging tweaks and kludges
  41. #define INJECT_DEFAULT_CAMERA_DEVICE_INFO
  42. #define FIX_OUTPUT_RESOLUTION_TO_LARGEST_INPUT
  43. #define NATIVE_CAMERA_RESOLUTION_ONLY
  44. // #define FAKE_MUX_ENCODER_SRC_AND_SINK // isolate compositor from encoder and muxer from output
  45. // #define MOCK_CHAT_NICKS
  46. // enable tracing
  47. #ifdef DEBUG
  48. # define DEBUG_TRACE 1
  49. #else // DEBUG
  50. # define DEBUG_TRACE 1
  51. #endif // DEBUG
  52. #define DEBUG_TRACE_EVENTS (DEBUG_TRACE && 1)
  53. #define DEBUG_TRACE_GUI (DEBUG_TRACE && 1)
  54. #define DEBUG_TRACE_GUI_VB (DEBUG_TRACE && 0)
  55. #define DEBUG_TRACE_MEDIA (DEBUG_TRACE && 1)
  56. #define DEBUG_TRACE_MEDIA_VB (DEBUG_TRACE && 0)
  57. #define DEBUG_TRACE_CONFIG (DEBUG_TRACE && 1)
  58. #define DEBUG_TRACE_CONFIG_VB (DEBUG_TRACE && 0)
  59. #define DEBUG_TRACE_CHAT (DEBUG_TRACE && 1)
  60. #define DEBUG_TRACE_CHAT_VB (DEBUG_TRACE && 0)
  61. #define DEBUG_TRACE_STATE (DEBUG_TRACE && 1)
  62. #define DEBUG_TRACE_ERRORS (DEBUG_TRACE && 1)
  63. #define DEBUG_TRACE_VB (DEBUG_TRACE && 0)
  64. // enable debug features
  65. #ifdef DEBUG_TRACE
  66. # define DEBUG_ANSI_COLORS 1
  67. // # define DEBUG_QUIT_BEFORE_MAIN_LOOP
  68. // # define DEBUG_QUIT_AFTER_MAIN_LOOP
  69. #define DUMP_CONFIG_VERBOSITY 0 /* 0 => none , 1 => nodes only , 2 => all */
  70. #define DUMP_CONFIG_XML
  71. #endif // DEBUG_TRACE
  72. // configuration and runtime constants
  73. #include "JuceHeader.h"
  74. #include "AppConstants.h"
  75. #include "GstConstants.h"
  76. #include "IrcConstants.h"
  77. #include "GuiConstants.h"
  78. #include "ConfigConstants.h"
  79. #endif // _CONSTANTS_H_