summaryrefslogtreecommitdiff
path: root/src/lib/delay_line.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-12 21:04:06 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-12 21:04:06 +0000
commit17cea71c34ed6bdba67aac8614572c7511844c2a (patch)
tree41464576c5e2e6ab360789faf4b5fcc4358ee556 /src/lib/delay_line.h
parent13b935067e892875ea9e76c3d63fcc11d2c429b0 (diff)
Untested; more movement of stuff out of decoder.
Diffstat (limited to 'src/lib/delay_line.h')
-rw-r--r--src/lib/delay_line.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/delay_line.h b/src/lib/delay_line.h
index e8d9560af..fa2870ae7 100644
--- a/src/lib/delay_line.h
+++ b/src/lib/delay_line.h
@@ -18,19 +18,21 @@
*/
#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 (Log* log, int channels, int frames);
- void feed (boost::shared_ptr<AudioBuffers>);
+ void process_audio (boost::shared_ptr<AudioBuffers>);
+ void process_end ();
private:
boost::shared_ptr<AudioBuffers> _buffers;
int _negative_delay_remaining; ///< number of frames of negative delay that remain to emit
+ int _frames;
};