#include "audio_mapping.h"
#include "compose.hpp"
#include "config.h"
+#include "constants.h"
#include "cross.h"
#include "dcp_content_type.h"
#include "dcp_video.h"
/* Add reels */
for (auto& i: _reels) {
- cpl->add (i.create_reel(_reel_assets, _fonts, _chosen_interop_font, output_dcp, _have_subtitles, _have_closed_captions));
+ cpl->add(i.create_reel(_reel_assets, output_dcp, _have_subtitles, _have_closed_captions));
}
/* Add metadata */
field = dcp::MCASoundField::SEVEN_POINT_ONE;
}
- dcp::MainSoundConfiguration msc (field, film()->audio_channels());
+ dcp::MainSoundConfiguration msc(field, MAX_DCP_AUDIO_CHANNELS);
for (auto i: film()->mapped_audio_channels()) {
- if (static_cast<int>(i) < film()->audio_channels()) {
- msc.set_mapping (i, static_cast<dcp::Channel>(i));
- }
+ msc.set_mapping(i, static_cast<dcp::Channel>(i));
}
- cpl->set_main_sound_configuration (msc.to_string());
+ cpl->set_main_sound_configuration(msc);
cpl->set_main_sound_sample_rate (film()->audio_frame_rate());
cpl->set_main_picture_stored_area (film()->frame_size());
period = back_off(period);
}
- (*reel)->write(text, type, track, period, _fonts);
+ (*reel)->write(text, type, track, period, _fonts, _chosen_interop_font);
}
vector<HangingText> new_hanging_texts;
for (auto i: _hanging_texts) {
if (i.period.from == reel.period().from) {
- reel.write (i.text, i.type, i.track, i.period, _fonts);
+ reel.write(i.text, i.type, i.track, i.period, _fonts, _chosen_interop_font);
} else {
new_hanging_texts.push_back (i);
}