VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
|
Super simple wrapper for the hiir up and down samplers It only goes up to 4x oversampling Its type is also bound to the Audiouffers default sample type in order to avoid including all versions of the hiir library. More...
#include <TOversampler.hpp>
Public Types | |
using | T = AudioBuffer::sample |
using | uchar = unsigned char |
using | uint = unsigned int |
using | Size = AudioBuffer::Size |
using | ProcessFunction = std::function< void(T **, T **, Size)> |
Public Member Functions | |
Oversampler () | |
void | setProcessFunc (const ProcessFunction &f) |
void | setFactor (const uchar factor) |
int | getFactor () const |
void | process (AudioBuffer &in, AudioBuffer &out) |
void | process (T **in, T **out, const Size frames) |
Static Public Member Functions | |
static const char * | getLicense () |
Private Member Functions | |
TKLB_OVERSAMPLER_UP (12) mUp2x[CHANNELS] | |
TKLB_OVERSAMPLER_UP (4) mUp4x[CHANNELS] | |
TKLB_OVERSAMPLER_DOWN (12) mDown2x[CHANNELS] | |
TKLB_OVERSAMPLER_DOWN (4) mDown4x[CHANNELS] | |
Private Attributes | |
AudioBuffer | mBuf2xUp |
AudioBuffer | mBuf2xDown |
AudioBuffer | mBuf4xUp |
AudioBuffer | mBuf4xDown |
const double | coeffs2x [12] |
Straight up stolen from the hiir oversampler wrapper from iPlug2 https://github.com/iPlug2/iPlug2/blob/master/IPlug/Extras/Oversampler.h. More... | |
const double | coeffs4x [4] |
uchar | mFactor = 1 |
ProcessFunction | mProc |
Super simple wrapper for the hiir up and down samplers It only goes up to 4x oversampling Its type is also bound to the Audiouffers default sample type in order to avoid including all versions of the hiir library.
Definition at line 69 of file TOversampler.hpp.
using tklb::Oversampler< CHANNELS, MAX_BLOCK >::ProcessFunction = std::function<void(T**, T**, Size)> |
Definition at line 79 of file TOversampler.hpp.
using tklb::Oversampler< CHANNELS, MAX_BLOCK >::Size = AudioBuffer::Size |
Definition at line 75 of file TOversampler.hpp.
using tklb::Oversampler< CHANNELS, MAX_BLOCK >::T = AudioBuffer::sample |
Definition at line 71 of file TOversampler.hpp.
using tklb::Oversampler< CHANNELS, MAX_BLOCK >::uchar = unsigned char |
Definition at line 73 of file TOversampler.hpp.
using tklb::Oversampler< CHANNELS, MAX_BLOCK >::uint = unsigned int |
Definition at line 74 of file TOversampler.hpp.
|
inline |
Definition at line 108 of file TOversampler.hpp.
|
inline |
Definition at line 129 of file TOversampler.hpp.
|
inlinestatic |
Definition at line 179 of file TOversampler.hpp.
|
inline |
Definition at line 133 of file TOversampler.hpp.
|
inline |
No OverSampling at all
2x OverSampling
4x OverSampling
Definition at line 137 of file TOversampler.hpp.
|
inline |
Definition at line 125 of file TOversampler.hpp.
|
inline |
Definition at line 121 of file TOversampler.hpp.
|
private |
|
private |
|
private |
|
private |
|
private |
Straight up stolen from the hiir oversampler wrapper from iPlug2 https://github.com/iPlug2/iPlug2/blob/master/IPlug/Extras/Oversampler.h.
Definition at line 93 of file TOversampler.hpp.
|
private |
Definition at line 99 of file TOversampler.hpp.
|
private |
Definition at line 87 of file TOversampler.hpp.
|
private |
Definition at line 87 of file TOversampler.hpp.
|
private |
Definition at line 87 of file TOversampler.hpp.
|
private |
Definition at line 87 of file TOversampler.hpp.
|
private |
Definition at line 104 of file TOversampler.hpp.
|
private |
Definition at line 105 of file TOversampler.hpp.