|
HART
0.1.0
High level Audio Regression and Testing
|
Process signals. More...
Classes | |
| class | DSP< SampleType > |
| Base for DSP effects. More... | |
| class | GainDb< SampleType > |
| Applies gain in decibels to the signal. More... | |
| class | GainLinear< SampleType > |
| Applies linear gain (not decibels) to the signal. More... | |
| class | HardClip< SampleType > |
| Applies symmetrical hard clipping (no knee) to the signal. More... | |
Macros | |
| #define | HART_DSP_DEFINE_COPY_AND_MOVE(ClassName) |
| Defines hart::DSP::copy() and hart::DSP::move() methods. | |
| #define | HART_DSP_FORBID_COPY_AND_MOVE |
| Forbids hart::DSP::copy() and hart::DSP::move() methods. | |
Functions | |
| template<typename SampleType > | |
| std::ostream & | operator<< (std::ostream &stream, const DSP< SampleType > &dsp) |
| Prints readable text representation of the DSP object into the I/O stream. | |
Process signals.
| #define HART_DSP_DEFINE_COPY_AND_MOVE | ( | ClassName | ) |
Defines hart::DSP::copy() and hart::DSP::move() methods.
Put this into your class body's public section if either is true:
If neither of those is true, or you're unsure, use HART_DSP_FORBID_COPY_AND_MOVE instead
Despite returning a smart pointer to an abstract DSP class, those two methods must construct an object of a specific class, hence the mandatory boilerplate methods - sorry!
| ClassName | Name of your class |
Definition at line 334 of file hart_dsp.hpp.
| #define HART_DSP_FORBID_COPY_AND_MOVE |
Forbids hart::DSP::copy() and hart::DSP::move() methods.
Put this into your class body's public section if either is true:
Otherwise, use HART_DSP_DEFINE_COPY_AND_MOVE() instead. Obviously, you won't be able to pass your class to the host by reference, copy or explicit move, but you still can pass it wrapped into a smart pointer like so:
But it's still better to get your move and copy semantics figured out - this is a perfect chance to stress-test your effect's resource management, among other things!
Definition at line 357 of file hart_dsp.hpp.
|
related |
Prints readable text representation of the DSP object into the I/O stream.
Definition at line 315 of file hart_dsp.hpp.