X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdelay_line.h;h=c51784f353ab7edbbdcd373f6bcb42da5957bf8c;hb=ba0a895137b630f5d308b123ef886d68090f855d;hp=e8d9560af599e5da366ed4735d17c6cf7ce6a235;hpb=b7466a9653345bc51db4cb1d7e960bfc4c12721f;p=dcpomatic.git diff --git a/src/lib/delay_line.h b/src/lib/delay_line.h index e8d9560af..c51784f35 100644 --- a/src/lib/delay_line.h +++ b/src/lib/delay_line.h @@ -18,19 +18,20 @@ */ #include +#include "processor.h" class AudioBuffers; /** A delay line for audio */ -class DelayLine +class DelayLine : public AudioProcessor { public: - DelayLine (int channels, int frames); - ~DelayLine (); + DelayLine (boost::shared_ptr log, int channels, int frames); - void feed (boost::shared_ptr); + void process_audio (boost::shared_ptr); private: boost::shared_ptr _buffers; int _negative_delay_remaining; ///< number of frames of negative delay that remain to emit + int _frames; };