The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
5.3KB

  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2020 - Raw Material Software Limited
  5. JUCE is an open source library subject to commercial or open-source
  6. licensing.
  7. By using JUCE, you agree to the terms of both the JUCE 6 End-User License
  8. Agreement and JUCE Privacy Policy (both effective as of the 16th June 2020).
  9. End User License Agreement: www.juce.com/juce-6-licence
  10. Privacy Policy: www.juce.com/juce-privacy-policy
  11. Or: You may also use this code under the terms of the GPL v3 (see
  12. www.gnu.org/licenses).
  13. JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
  14. EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
  15. DISCLAIMED.
  16. ==============================================================================
  17. */
  18. #include <JuceHeader.h>
  19. #include "../../../Assets/DemoUtilities.h"
  20. #include "JUCEDemos.h"
  21. #include "../../../Assets/AudioLiveScrollingDisplay.h"
  22. //==============================================================================
  23. #include "IntroScreen.h"
  24. #include "../../../Audio/AudioAppDemo.h"
  25. #include "../../../Audio/AudioLatencyDemo.h"
  26. #include "../../../Audio/AudioPlaybackDemo.h"
  27. #include "../../../Audio/AudioRecordingDemo.h"
  28. #include "../../../Audio/AudioSettingsDemo.h"
  29. #include "../../../Audio/AudioSynthesiserDemo.h"
  30. #include "../../../Audio/MidiDemo.h"
  31. #include "../../../Audio/MPEDemo.h"
  32. #include "../../../Audio/PluckedStringsDemo.h"
  33. #include "../../../Audio/SimpleFFTDemo.h"
  34. #include "../../../BLOCKS/BlocksDrawingDemo.h"
  35. #include "../../../BLOCKS/BlocksMonitorDemo.h"
  36. #include "../../../BLOCKS/BlocksSynthDemo.h"
  37. #include "../../../DSP/ConvolutionDemo.h"
  38. #include "../../../DSP/FIRFilterDemo.h"
  39. #include "../../../DSP/GainDemo.h"
  40. #include "../../../DSP/IIRFilterDemo.h"
  41. #include "../../../DSP/OscillatorDemo.h"
  42. #include "../../../DSP/OverdriveDemo.h"
  43. #if JUCE_USE_SIMD
  44. #include "../../../DSP/SIMDRegisterDemo.h"
  45. #endif
  46. #include "../../../DSP/StateVariableFilterDemo.h"
  47. #include "../../../DSP/WaveShaperTanhDemo.h"
  48. #include "../../../Utilities/Box2DDemo.h"
  49. #if JUCE_MAC || JUCE_WINDOWS || JUCE_LINUX
  50. #include "../../../Utilities/ChildProcessDemo.h"
  51. #endif
  52. #include "../../../Utilities/CryptographyDemo.h"
  53. #include "../../../Utilities/JavaScriptDemo.h"
  54. #include "../../../Utilities/LiveConstantDemo.h"
  55. #include "../../../Utilities/MultithreadingDemo.h"
  56. #include "../../../Utilities/NetworkingDemo.h"
  57. #include "../../../Utilities/OSCDemo.h"
  58. #include "../../../Utilities/SystemInfoDemo.h"
  59. #include "../../../Utilities/TimersAndEventsDemo.h"
  60. #include "../../../Utilities/UnitTestsDemo.h"
  61. #include "../../../Utilities/ValueTreesDemo.h"
  62. #include "../../../Utilities/XMLandJSONDemo.h"
  63. void registerDemos_One() noexcept
  64. {
  65. REGISTER_DEMO (AudioAppDemo, Audio, false)
  66. REGISTER_DEMO (AudioLatencyDemo, Audio, false)
  67. REGISTER_DEMO (AudioPlaybackDemo, Audio, false)
  68. REGISTER_DEMO (AudioRecordingDemo, Audio, false)
  69. REGISTER_DEMO (AudioSettingsDemo, Audio, false)
  70. REGISTER_DEMO (AudioSynthesiserDemo, Audio, false)
  71. REGISTER_DEMO (MidiDemo, Audio, false)
  72. REGISTER_DEMO (MPEDemo, Audio, false)
  73. REGISTER_DEMO (PluckedStringsDemo, Audio, false)
  74. REGISTER_DEMO (SimpleFFTDemo, Audio, false)
  75. REGISTER_DEMO (BlocksDrawingDemo, BLOCKS, false)
  76. REGISTER_DEMO (BlocksMonitorDemo, BLOCKS, false)
  77. REGISTER_DEMO (BlocksSynthDemo, BLOCKS, false)
  78. REGISTER_DEMO (ConvolutionDemo, DSP, false)
  79. REGISTER_DEMO (FIRFilterDemo, DSP, false)
  80. REGISTER_DEMO (GainDemo, DSP, false)
  81. REGISTER_DEMO (IIRFilterDemo, DSP, false)
  82. REGISTER_DEMO (OscillatorDemo, DSP, false)
  83. REGISTER_DEMO (OverdriveDemo, DSP, false)
  84. #if JUCE_USE_SIMD
  85. REGISTER_DEMO (SIMDRegisterDemo, DSP, false)
  86. #endif
  87. REGISTER_DEMO (StateVariableFilterDemo, DSP, false)
  88. REGISTER_DEMO (WaveShaperTanhDemo, DSP, false)
  89. REGISTER_DEMO (Box2DDemo, Utilities, false)
  90. #if JUCE_MAC || JUCE_WINDOWS || JUCE_LINUX
  91. REGISTER_DEMO (ChildProcessDemo, Utilities, false)
  92. #endif
  93. REGISTER_DEMO (CryptographyDemo, Utilities, false)
  94. REGISTER_DEMO (JavaScriptDemo, Utilities, false)
  95. REGISTER_DEMO (LiveConstantDemo, Utilities, false)
  96. REGISTER_DEMO (MultithreadingDemo, Utilities, false)
  97. REGISTER_DEMO (NetworkingDemo, Utilities, false)
  98. REGISTER_DEMO (OSCDemo, Utilities, false)
  99. REGISTER_DEMO (SystemInfoDemo, Utilities, false)
  100. REGISTER_DEMO (TimersAndEventsDemo, Utilities, false)
  101. REGISTER_DEMO (UnitTestsDemo, Utilities, false)
  102. REGISTER_DEMO (ValueTreesDemo, Utilities, false)
  103. REGISTER_DEMO (XMLandJSONDemo, Utilities, false)
  104. }
  105. Component* createIntroDemo()
  106. {
  107. return new IntroScreen();
  108. }
  109. bool isComponentIntroDemo (Component* comp) noexcept
  110. {
  111. return (dynamic_cast<IntroScreen*> (comp) != nullptr);
  112. }