diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-04-21 22:41:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-04-21 22:41:52 +0100 |
| commit | 47f25009bcbc765e397bcb471dd361a511c99daf (patch) | |
| tree | 356ac924524183047a84e34674985b3a00c5ca24 /src/lib/delay_line.h | |
| parent | afc495f722f89fea0bcc579046d1a5d362e36f69 (diff) | |
| parent | e8d8a27c7f6861b031b3250b0ad50d04c41a7721 (diff) | |
Untested merge of master.
Diffstat (limited to 'src/lib/delay_line.h')
| -rw-r--r-- | src/lib/delay_line.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/delay_line.h b/src/lib/delay_line.h index c51784f35..90f1dcfa7 100644 --- a/src/lib/delay_line.h +++ b/src/lib/delay_line.h @@ -20,18 +20,15 @@ #include <boost/shared_ptr.hpp> #include "processor.h" -class AudioBuffers; - -/** A delay line for audio */ -class DelayLine : public AudioProcessor +/** A delay line */ +class DelayLine : public TimedAudioVideoProcessor { public: - DelayLine (boost::shared_ptr<Log> log, int channels, int frames); + DelayLine (boost::shared_ptr<Log> log, double); - void process_audio (boost::shared_ptr<AudioBuffers>); + void process_video (boost::shared_ptr<Image>, bool, boost::shared_ptr<Subtitle>, double); + void process_audio (boost::shared_ptr<AudioBuffers>, double); private: - boost::shared_ptr<AudioBuffers> _buffers; - int _negative_delay_remaining; ///< number of frames of negative delay that remain to emit - int _frames; + double _seconds; }; |
