29template <
typename FloatType,
size_t MaximumChannels>
37 template <
typename SampleType,
size_t N>
46 for (uint_fast32_t samp = 0; samp < bufferSize; ++samp)
48 for (uint_fast32_t ch = 0; ch < numChannels; ++ch)
50 const FloatType input = block.view[i];
51 const FloatType y = input - x1[ch] + (y1[ch] * c);
64 static constexpr FloatType c = (FloatType) 0.9997;
66 std::array<FloatType, MaximumChannels> x1 {};
67 std::array<FloatType, MaximumChannels> y1 {};
Some utilities functions.
A lightweight data structure that stores a pointer to an audio buffer.
Definition: ame_AudioBuffer.hpp:32
uint_fast32_t getNumChannels() const noexcept
Returns the number of channels.
Definition: ame_AudioBuffer.hpp:49
uint_fast32_t getNumSamplesPerChannel() const noexcept
Returns the number of samples per channel.
Definition: ame_AudioBuffer.hpp:55
DC block filter.
Definition: ame_DcBlock.hpp:31
void process(AudioBlockView< SampleType, N > &block)
Process audio effect.
Definition: ame_DcBlock.hpp:38