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.

79 lines
1.8KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. ==============================================================================
  5. */
  6. #ifndef MAINCOMPONENT_H_INCLUDED
  7. #define MAINCOMPONENT_H_INCLUDED
  8. INCLUDE_JUCE
  9. //==============================================================================
  10. /*
  11. This component lives inside our window, and this is where you should put all
  12. your controls and content.
  13. */
  14. class MainContentComponent : public AudioAppComponent
  15. {
  16. public:
  17. //==============================================================================
  18. MainContentComponent()
  19. {
  20. setSize (500, 400);
  21. // the the input and output channels (currently Mono in and out)
  22. setAudioChannels (1, 1);
  23. }
  24. ~MainContentComponent()
  25. {
  26. }
  27. void prepareToPlay (int samplesPerBlockExpected, double sampleRate)
  28. {
  29. }
  30. void releaseResources()
  31. {
  32. }
  33. void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill)
  34. {
  35. }
  36. void paint (Graphics& g)
  37. {
  38. // fill background
  39. g.fillAll (Colours::black);
  40. }
  41. void resized()
  42. {
  43. // This is called when the MainContentComponent is resized.
  44. // If you add any child components, this is where you should
  45. // update their positions.
  46. }
  47. private:
  48. //==============================================================================
  49. // private member variables
  50. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
  51. };
  52. Component* createMainContentComponent() { return new MainContentComponent(); };
  53. #endif // MAINCOMPONENT_H_INCLUDED