diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-03-06 23:08:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-03-06 23:08:07 +0000 |
| commit | 7a9a8229b57139ece3f9848910087310c06169c7 (patch) | |
| tree | d34e0ff2783dc2f085a441e61e73252a10ae5cc1 /src/lib/delay_line.h | |
| parent | e3ce330c4dc3f59f4e2b942bb6111c308a3d83eb (diff) | |
Try doing delay line by fiddling timestamps. Fix up confusion in A/B transcoder similar to that in standard one.
Diffstat (limited to 'src/lib/delay_line.h')
| -rw-r--r-- | src/lib/delay_line.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/delay_line.h b/src/lib/delay_line.h index 8c4a3953c..a52fb981c 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 Processor, public TimedAudioSink, public TimedAudioSource +class DelayLine : public Processor, public TimedAudioSink, public TimedAudioSource, public TimedVideoSink, public TimedVideoSource { public: - DelayLine (Log* log, int channels, int frames); + DelayLine (Log* log, double); + 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; }; |
