14template <
typename SampleType>
19 void prepare (
double , size_t numInputChannels, size_t , size_t )
override
21 if (numInputChannels != 2)
27 hassert (output.getNumFrames() == input.getNumFrames());
28 hassert (input.getNumChannels() == 2);
29 hassert (input.getNumChannels() == output.getNumChannels());
31 for (size_t frame = 0; frame < input.getNumFrames(); ++frame)
40 return numInputChannels == 2 && numOutputChannels == 2;
Container for audio data.
A set of boolean flags mapped to each audio channel.
Thrown when a numbers of channels is mismatched.
Converts regular stereo signal into mid-side signal.
virtual bool supportsChannelLayout(size_t numInputChannels, size_t numOutputChannels) const override
Tells the runner (host) whether this effect supports a specific i/o configuration.
void prepare(double, size_t numInputChannels, size_t, size_t) override
Prepare for processing.
void setValue(int, double) override
Sets DSP value.
void process(const AudioBuffer< SampleType > &input, AudioBuffer< SampleType > &output, const EnvelopeBuffers &, ChannelFlags) override
Processes the audio.
void reset() override
Resets to initial state.
#define HART_DSP_COPYABLE(ClassName)
Implements a generic hart::DSP::copy() method.
#define HART_THROW_OR_RETURN_VOID(ExceptionType, message)
Throws an exception if HART_DO_NOT_THROW_EXCEPTIONS is set, prints a message and returns otherwise.
#define hassert(condition)
Triggers a HartAssertException if the condition is false
#define HART_DEFINE_GENERIC_REPRESENT(ClassName)
Defines a basic string representation of your class.
Channel
Helper values for channel indices.
MidSideChannel
Helper values for mid-side channel indices.
#define HART_DSP_DECLARE_ALIASES_FOR(ClassName)