More fr_FR tweaks from Lilian.
[dcpomatic.git] / src / lib / delay_line.h
index e8d9560af599e5da366ed4735d17c6cf7ce6a235..c51784f353ab7edbbdcd373f6bcb42da5957bf8c 100644 (file)
 */
 
 #include <boost/shared_ptr.hpp>
+#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> log, int channels, int frames);
        
-       void feed (boost::shared_ptr<AudioBuffers>);
+       void process_audio (boost::shared_ptr<AudioBuffers>);
 
 private:
        boost::shared_ptr<AudioBuffers> _buffers;
        int _negative_delay_remaining; ///< number of frames of negative delay that remain to emit
+       int _frames;
 };