6#include "signals/hart_signal.hpp"
14template<
typename SampleType>
21 void prepare (
double , size_t , size_t )
override
27 for (size_t channel = 0; channel < output.getNumChannels(); ++channel)
28 for (size_t frame = 0; frame < output.getNumFrames(); ++frame)
29 output[channel][frame] = (SampleType) 0;
void renderNextBlock(AudioBuffer< SampleType > &output) override
Renders next block audio for the signal.
bool supportsNumChannels(size_t) const override
Tells the host whether this Signal is capable of generating audio for a certain amount of cchannels.
void prepare(double, size_t, size_t) override
Prepare the signal for rendering.
void reset() override
Resets the Signal to initial state.
#define HART_SIGNAL_DEFINE_COPY_AND_MOVE(ClassName)
Defines hart::Signal::copy() and hart::Signal::move() methods.
#define HART_DEFINE_GENERIC_REPRESENT(ClassName)
Defines a basic string representation of your class.
#define HART_SIGNAL_DECLARE_ALIASES_FOR(ClassName)