43 sample_rate_(sample_rate),
44 max_delay_time_(max_delay_in_seconds),
45 delay_time_(max_delay_in_seconds),
47 static_cast<
uint64>(sample_rate * max_delay_in_seconds + 1),
64 auto dt = delay_time.
cbegin();
68 y <<
delay(sample, *dt);
81 return read(delay_time);
101 "delay time exceeds maximum ("
119 M_ASSERT_MSG(delay > 0.0,
"delay must be > 0.0, got " << delay);
#define M_ASSERT_VALUE(a, op, value)
#define M_ASSERT_MSG(expr, message)
circular_iterator cbegin()
Retruns the itreator at the start of the Buffer.
std::vector< float64 > buffer_
DelayLine(float64 sample_rate, float64 max_delay_in_seconds)
unsigned long long uint64
A Buffer for storing audio samples.
Buffer delay(const Buffer &x, const Buffer &delay_time)