SampleFilter.hpp¶
-
template<unsigned MIC_COUNT>
class mic_array::NopSampleFilter¶ Filter which does nothing.
Calls to
NopSampleFilter::Filter()
are intended to be optimized out at compile time.- Template Parameters
MIC_COUNT – Number of microphone channels.
-
template<unsigned MIC_COUNT>
class mic_array::DcoeSampleFilter¶ Filter which applies DC Offset Elimination (DCOE).
- Template Parameters
MIC_COUNT – Number of microphone channels.
Public Functions
-
void Init()¶
Initialize the filter states.
The filter states must be initialized prior to calls to
Filter()
.
-
void Filter(int32_t sample[MIC_COUNT])¶
Apply DCOE filter on samples.
sample
is an array of samples to be filtered, and is updated in-place.The filter states must have been initialized with a call to
Init()
prior to calling this function.- Parameters
sample – Samples to be filtered. Updated in-place.