#include <delayfilter.h>
| sal::DelayFilter::DelayFilter |
( |
const Int |
latency, |
|
|
Int |
max_latency |
|
) |
| |
|
noexcept |
Constructs a delay filter object with intial latency given by latency. A maximum latency has to be given to allocate the maximum amount of memory of the circular memory.
| sal::DelayFilter::~DelayFilter |
( |
| ) |
|
|
inlinenoexcept |
| sal::DelayFilter::DelayFilter |
( |
const DelayFilter & |
copy | ) |
|
| mcl::Real sal::DelayFilter::Filter |
( |
const mcl::Real |
input | ) |
|
|
virtualnoexcept |
| Sample sal::DelayFilter::FractionalReadAt |
( |
const Time |
fractional_delay_tap | ) |
const |
|
inlinenoexcept |
| Int sal::DelayFilter::latency |
( |
| ) |
const |
|
noexcept |
Returns the current latency of the delay filter
| Int sal::DelayFilter::max_latency |
( |
| ) |
const |
|
noexcept |
Returns the maximum latency of the delay filter
| Sample sal::DelayFilter::Read |
( |
| ) |
const |
|
inlinenoexcept |
Returns the current sample from the filter. Between two Tick() operation it will give always the same output.
| void sal::DelayFilter::Read |
( |
const Int |
num_samples, |
|
|
Sample * |
output_data |
|
) |
| const |
|
noexcept |
Read the next num_samples samples.
- Parameters
-
| [in] | num_samples | the number of samples to be read. |
| [out] | output_data | the array where to write these samples. |
| const Sample& sal::DelayFilter::ReadAt |
( |
const Int |
delay_tap | ) |
const |
|
inlinenoexcept |
This allows to read at a different location from the read pointer.
| void sal::DelayFilter::Reset |
( |
| ) |
|
|
virtualnoexcept |
Resets the state of the filter
| void sal::DelayFilter::SetLatency |
( |
const Int |
latency | ) |
|
|
noexcept |
Resets the latency of the filter. This can introduce artifacts if the latency is updated too fast.
| bool sal::DelayFilter::Test |
( |
| ) |
|
|
static |
| void sal::DelayFilter::Tick |
( |
| ) |
|
|
inlinenoexcept |
This causes time to tick by one sample.
| void sal::DelayFilter::Tick |
( |
const Int |
num_samples | ) |
|
|
noexcept |
This causes time to tick by more than one sample (use only if you understand what you are doing!).
| void sal::DelayFilter::Write |
( |
const Sample |
sample | ) |
|
|
inlinenoexcept |
This writes the next sample into the filter. If this method is called 2 times before the Tick() operation, the former value will be overwritten.
| void sal::DelayFilter::Write |
( |
const Sample * |
samples, |
|
|
const Int |
num_samples |
|
) |
| |
|
noexcept |
| Sample* sal::DelayFilter::end_ |
|
protected |
| Sample* sal::DelayFilter::read_index_ |
|
protected |
| Sample* sal::DelayFilter::start_ |
|
protected |
| Sample* sal::DelayFilter::write_index_ |
|
protected |
The documentation for this class was generated from the following files: