Skip to content

Instantly share code, notes, and snippets.

@AkiyukiOkayasu
Created November 17, 2020 08:21
Show Gist options
  • Save AkiyukiOkayasu/4eb005d39aacc48c974708049639bd25 to your computer and use it in GitHub Desktop.
Save AkiyukiOkayasu/4eb005d39aacc48c974708049639bd25 to your computer and use it in GitHub Desktop.
JUCE DSP module minimum implementation.
#pragma once
//==============================================================================
template <typename FloatType>
class MinimumDspModule
{
public:
MinimumDspModule() noexcept = default;
//==============================================================================
/** Called before processing starts */
void prepare(const juce::dsp::ProcessSpec &spec) noexcept
{
}
void reset() noexcept
{
}
//==============================================================================
/** Returns the result of processing a single sample. */
template <typename SampleType>
SampleType processSample(SampleType inputSample) noexcept
{
return 0.0f;
}
//==============================================================================
/** Processes the input and output buffers supplied in the processing context. */
template <typename ProcessContext>
void process(const ProcessContext &context) noexcept
{
}
private:
//==============================================================================
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment