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.

46 lines
1.7KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. It contains the basic framework code for an ARA playback renderer implementation.
  5. ==============================================================================
  6. */
  7. #pragma once
  8. #include <juce_audio_processors/juce_audio_processors.h>
  9. //==============================================================================
  10. /**
  11. */
  12. class %%araplaybackrenderer_class_name%% : public juce::ARAPlaybackRenderer
  13. {
  14. public:
  15. //==============================================================================
  16. using juce::ARAPlaybackRenderer::ARAPlaybackRenderer;
  17. //==============================================================================
  18. void prepareToPlay (double sampleRate,
  19. int maximumSamplesPerBlock,
  20. int numChannels,
  21. juce::AudioProcessor::ProcessingPrecision,
  22. AlwaysNonRealtime alwaysNonRealtime) override;
  23. void releaseResources() override;
  24. //==============================================================================
  25. bool processBlock (juce::AudioBuffer<float>& buffer,
  26. juce::AudioProcessor::Realtime realtime,
  27. const juce::AudioPlayHead::PositionInfo& positionInfo) noexcept override;
  28. private:
  29. //==============================================================================
  30. double sampleRate = 44100.0;
  31. int maximumSamplesPerBlock = 4096;
  32. int numChannels = 1;
  33. bool useBufferedAudioSourceReader = true;
  34. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (%%araplaybackrenderer_class_name%%)
  35. };