46 lines
1.7 KiB
C++
46 lines
1.7 KiB
C++
/*
|
|
==============================================================================
|
|
|
|
This file was auto-generated!
|
|
|
|
It contains the basic framework code for an ARA playback renderer implementation.
|
|
|
|
==============================================================================
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <juce_audio_processors/juce_audio_processors.h>
|
|
|
|
//==============================================================================
|
|
/**
|
|
*/
|
|
class %%araplaybackrenderer_class_name%% : public juce::ARAPlaybackRenderer
|
|
{
|
|
public:
|
|
//==============================================================================
|
|
using juce::ARAPlaybackRenderer::ARAPlaybackRenderer;
|
|
|
|
//==============================================================================
|
|
void prepareToPlay (double sampleRate,
|
|
int maximumSamplesPerBlock,
|
|
int numChannels,
|
|
juce::AudioProcessor::ProcessingPrecision,
|
|
AlwaysNonRealtime alwaysNonRealtime) override;
|
|
void releaseResources() override;
|
|
|
|
//==============================================================================
|
|
bool processBlock (juce::AudioBuffer<float>& buffer,
|
|
juce::AudioProcessor::Realtime realtime,
|
|
const juce::AudioPlayHead::PositionInfo& positionInfo) noexcept override;
|
|
|
|
private:
|
|
//==============================================================================
|
|
double sampleRate = 44100.0;
|
|
int maximumSamplesPerBlock = 4096;
|
|
int numChannels = 1;
|
|
bool useBufferedAudioSourceReader = true;
|
|
|
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (%%araplaybackrenderer_class_name%%)
|
|
};
|