13 static_assert(std::is_floating_point_v<SampleType>,
14 "UnitDelayT requires a floating-point sample type");
17 [[nodiscard]] SampleType
publish() const noexcept {
21 void commit(SampleType input)
noexcept {
25 [[nodiscard]] SampleType
process(SampleType input)
noexcept {
26 const SampleType output =
publish();
32 state_ = SampleType{};
42static_assert(
sizeof(
UnitDelay) ==
sizeof(float));
43static_assert(
alignof(
UnitDelay) ==
alignof(float));
One sample of explicit signal memory.
Definition unit_delay.hpp:12
void reset() noexcept
Definition unit_delay.hpp:31
SampleType publish() const noexcept
Definition unit_delay.hpp:17
void commit(SampleType input) noexcept
Definition unit_delay.hpp:21
SampleType process(SampleType input) noexcept
Definition unit_delay.hpp:25
Definition additive_bank.hpp:218
UnitDelayT< double > UnitDelay64
Definition unit_delay.hpp:40
UnitDelayT< float > UnitDelay
Definition unit_delay.hpp:39