/* @param seconds Delay in seconds, +ve to move audio later.
*/
DelayLine::DelayLine (shared_ptr<Log> log, double seconds)
- : Processor (log)
+ : TimedAudioVideoProcessor (log)
, _seconds (seconds)
{
}
void
-DelayLine::process_audio (shared_ptr<AudioBuffers> data)
+DelayLine::process_audio (shared_ptr<const AudioBuffers> data, double t)
{
if (_seconds > 0) {
t += _seconds;
}
void
-DelayLine::process_video (boost::shared_ptr<Image> image, bool same, boost::shared_ptr<Subtitle> sub, double t)
+DelayLine::process_video (shared_ptr<const Image> image, bool same, boost::shared_ptr<Subtitle> sub, double t)
{
if (_seconds < 0) {
- t += _seconds;
+ t -= _seconds;
}
Video (image, same, sub, t);