/*
- Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
#include "types.h"
#include "dcpomatic_time.h"
#include "referenced_reel_asset.h"
-#include "player_subtitles.h"
+#include "player_text.h"
#include <dcp/picture_asset_writer.h>
#include <boost/shared_ptr.hpp>
void fake_write (Frame frame, Eyes eyes, int size);
void repeat_write (Frame frame, Eyes eyes);
void write (boost::shared_ptr<const AudioBuffers> audio);
- void write (PlayerSubtitles subs);
+ void write (PlayerText subs, DCPTimePeriod period);
void finish ();
boost::shared_ptr<dcp::Reel> create_reel (std::list<ReferencedReelAsset> const & refs, std::list<boost::shared_ptr<Font> > const & fonts);
return _period;
}
- int total_written_audio_frames () const {
- return _total_written_audio_frames;
- }
-
int last_written_video_frame () const {
return _last_written_video_frame;
}
/** the index of the last written video frame within the reel */
int _last_written_video_frame;
Eyes _last_written_eyes;
- /** the number of audio frames that have been written to the reel */
- int _total_written_audio_frames;
/** index of this reel within the DCP (starting from 0) */
int _reel_index;
/** number of reels in the DCP */