|
AudiClean
|
#include <NoiseFilter.h>


Public Member Functions | |
| void | RunFilter () |
| std::thread * | Start () |
| void | Stop () |
| virtual double | Filter (double dirtySample, double noiseSample)=0 |
| void | NextSignalSample (double sample) |
| void | NextNoiseSample (double noise) |
| void | SetOn (bool state) |
| bool | GetOn () |
Public Member Functions inherited from SampleLink | |
| void | RegisterCallback (SampleCallback *scb) |
| void | NextSample (double next) |
Protected Attributes | |
| BlockingQueue< double > | signalSamples |
| BlockingQueue< double > | noiseSamples |
| std::thread | worker |
| bool | isOn = true |
Protected Attributes inherited from SampleLink | |
| SampleCallback * | sampleCallback = nullptr |
A pipeline element to derive real-time noise removal filters from. Inherits SampleLink. Derived Classes must implement the pure abstract Filter() function. Noise and dirty samples are synchronised by making use of two instances of BlockingQueue. A worker thread loads each samples pair and performs the filtering per-sample.
|
pure virtual |
| bool NoiseFilter::GetOn | ( | ) |
| void NoiseFilter::NextNoiseSample | ( | double | noise | ) |
| void NoiseFilter::NextSignalSample | ( | double | sample | ) |
| void NoiseFilter::RunFilter | ( | ) |
| void NoiseFilter::SetOn | ( | bool | state | ) |
| std::thread * NoiseFilter::Start | ( | ) |
| void NoiseFilter::Stop | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.17