, _period (period)
, _last_written_video_frame (-1)
, _last_written_eyes (EYES_RIGHT)
- , _total_written_audio_frames (0)
, _reel_index (reel_index)
, _reel_count (reel_count)
, _content_summary (content_summary)
}
if (reel_subtitle_asset) {
- DCPOMATIC_ASSERT (reel_subtitle_asset->duration() == period_duration);
+ if (reel_subtitle_asset->duration() != period_duration) {
+ throw ProgrammingError (
+ __FILE__, __LINE__,
+ String::compose ("%1 vs %2", reel_subtitle_asset->duration(), period_duration)
+ );
+ }
reel->add (reel_subtitle_asset);
}
return;
}
- if (audio) {
- _sound_asset_writer->write (audio->data(), audio->frames());
- }
-
- _total_written_audio_frames += audio->frames ();
+ DCPOMATIC_ASSERT (audio);
+ _sound_asset_writer->write (audio->data(), audio->frames());
}
void