X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fconfig.cc;h=93eec9bc0330fb4258f3f90d78de59759adc83b7;hb=13b133de7fb5b953c23c58790c2d1f2a8bf4009c;hp=ccbcdf7ddb04e5cf08f4a80ca3c1d609545ce556;hpb=03b54137dc7b35594a38f5d2bbe702d3876544f7;p=dcpomatic.git diff --git a/src/lib/config.cc b/src/lib/config.cc index ccbcdf7dd..93eec9bc0 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -64,6 +64,7 @@ Config::Config () , _default_container (Ratio::from_id ("185")) , _default_dcp_content_type (DCPContentType::from_dci_name ("TST")) , _default_j2k_bandwidth (200000000) + , _default_audio_delay (0) , _kdm_email ( "Dear Projectionist\n\nPlease find attached KDMs for $CPL_NAME.\n\nBest regards,\nDCP-o-matic" ) @@ -145,6 +146,7 @@ Config::read () _default_dci_metadata = DCIMetadata (f.node_child ("DCIMetadata")); _default_still_length = f.optional_number_child("DefaultStillLength").get_value_or (10); _default_j2k_bandwidth = f.optional_number_child("DefaultJ2KBandwidth").get_value_or (200000000); + _default_audio_delay = f.optional_number_child("DefaultAudioDelay").get_value_or (0); list cc = f.node_children ("ColourConversion"); @@ -334,6 +336,7 @@ Config::write () const root->add_child("DefaultStillLength")->add_child_text (lexical_cast (_default_still_length)); root->add_child("DefaultJ2KBandwidth")->add_child_text (lexical_cast (_default_j2k_bandwidth)); + root->add_child("DefaultAudioDelay")->add_child_text (lexical_cast (_default_audio_delay)); for (vector::const_iterator i = _colour_conversions.begin(); i != _colour_conversions.end(); ++i) { i->as_xml (root->add_child ("ColourConversion"));