From ca981c8cfa23111e92be329f1c2dfbe3a07b4247 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Jun 2020 13:30:02 +0200 Subject: Make Atmos content work more like other content. Now its MXFs are re-written, meaning that they can be encrypted. This (along with the libdcp update) also fixes assorted Atmos bugs. --- src/lib/dcp_encoder.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/lib/dcp_encoder.cc') diff --git a/src/lib/dcp_encoder.cc b/src/lib/dcp_encoder.cc index d17c6c985..438a73fd6 100644 --- a/src/lib/dcp_encoder.cc +++ b/src/lib/dcp_encoder.cc @@ -64,6 +64,7 @@ DCPEncoder::DCPEncoder (shared_ptr film, weak_ptr job) _player_video_connection = _player->Video.connect (bind (&DCPEncoder::video, this, _1, _2)); _player_audio_connection = _player->Audio.connect (bind (&DCPEncoder::audio, this, _1, _2)); _player_text_connection = _player->Text.connect (bind (&DCPEncoder::text, this, _1, _2, _3, _4)); + _player_atmos_connection = _player->Atmos.connect (bind (&DCPEncoder::atmos, this, _1, _2, _3)); BOOST_FOREACH (shared_ptr c, film->content ()) { BOOST_FOREACH (shared_ptr i, c->text) { @@ -80,6 +81,7 @@ DCPEncoder::~DCPEncoder () _player_video_connection.release (); _player_audio_connection.release (); _player_text_connection.release (); + _player_atmos_connection.release (); } void @@ -157,6 +159,14 @@ DCPEncoder::text (PlayerText data, TextType type, optional track, } } + +void +DCPEncoder::atmos (shared_ptr data, DCPTime time, AtmosMetadata metadata) +{ + _writer->write (data, time, metadata); +} + + optional DCPEncoder::current_rate () const { -- cgit v1.2.3