Created
November 17, 2020 08:21
-
-
Save AkiyukiOkayasu/4eb005d39aacc48c974708049639bd25 to your computer and use it in GitHub Desktop.
JUCE DSP module minimum implementation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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