Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::signal::DelayLineT< SampleType > Class Template Reference

#include <delay_line.hpp>

Public Member Functions

void prepare (int max_delay_samples)
void push (SampleType sample)
SampleType read (SampleType delay_samples) const
SampleType read (int delay_samples) const
SampleType process (SampleType input, SampleType delay_samples)
void reset ()
void discard_history () noexcept
 Logically clears the delay history in constant time.
int max_delay () const

Member Function Documentation

◆ discard_history()

template<typename SampleType = float>
void pulp::signal::DelayLineT< SampleType >::discard_history ( )
inlinenoexcept

Logically clears the delay history in constant time.

Reads remain zero until enough new samples have been pushed to cover the requested delay; the old allocation is overwritten naturally as processing resumes.

◆ max_delay()

template<typename SampleType = float>
int pulp::signal::DelayLineT< SampleType >::max_delay ( ) const
inline

◆ prepare()

template<typename SampleType = float>
void pulp::signal::DelayLineT< SampleType >::prepare ( int max_delay_samples)
inline

◆ process()

template<typename SampleType = float>
SampleType pulp::signal::DelayLineT< SampleType >::process ( SampleType input,
SampleType delay_samples )
inline

◆ push()

template<typename SampleType = float>
void pulp::signal::DelayLineT< SampleType >::push ( SampleType sample)
inline

◆ read() [1/2]

template<typename SampleType = float>
SampleType pulp::signal::DelayLineT< SampleType >::read ( int delay_samples) const
inline

◆ read() [2/2]

template<typename SampleType = float>
SampleType pulp::signal::DelayLineT< SampleType >::read ( SampleType delay_samples) const
inline

◆ reset()

template<typename SampleType = float>
void pulp::signal::DelayLineT< SampleType >::reset ( )
inline

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/signal/include/pulp/signal/delay_line.hpp