diff --git a/src/density.cc b/src/density.cc index 8892915..6ba8041 100644 --- a/src/density.cc +++ b/src/density.cc @@ -1,7 +1,11 @@ #include "density.hh" namespace Heck { - void Density::process(const f32 *inSourceP, f32 *inDestP, u32 size) + namespace Constants { + constexpr Samplerate AUDIO_SAMPLERATE = Samplerate::SAI_48KHZ; + } + + void Density::process(const float *inSourceP, float *inDestP, u32 size) { UInt32 nSampleFrames = size; const Float32 *sourceP = inSourceP; diff --git a/src/density.hh b/src/density.hh index 7de2b26..69220b3 100644 --- a/src/density.hh +++ b/src/density.hh @@ -4,22 +4,17 @@ #include "types.hh" #include -namespace Heck::Constants { - constexpr Samplerate AUDIO_SAMPLERATE = Samplerate::SAI_48KHZ; -} - namespace Heck { - struct Density { using Float32 = f32; using Float64 = f64; using UInt32 = u32; - static constexpr bool DO_DITHER{ false }; + static constexpr bool DO_DITHER{ true }; - std::array params{ 0., 0., 1., 1. }; + std::array params{ 0., 0., 1., 1. }; - void process(const f32 * const inSourceP, f32 *inDestP, u32 size); + void process(const float *inSourceP, float *inDestP, u32 size); private: Float64 iirSampleA;