X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fsound_asset.h;fp=src%2Fsound_asset.h;h=80f1cfb6f50dbb09568db3fe7b4a3c273b9fd90e;hb=cdc8bc6a7da0b4f8c3dbfcf560fea61473cf1ca3;hp=9656cf904d1758dbbc3596bb3b0a27f81752bd75;hpb=445f2495fbb0885132d3a6c8e7a1e135cbac3cce;p=libdcp.git diff --git a/src/sound_asset.h b/src/sound_asset.h index 9656cf90..80f1cfb6 100644 --- a/src/sound_asset.h +++ b/src/sound_asset.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2016 Carl Hetherington + Copyright (C) 2012-2020 Carl Hetherington This file is part of libdcp. @@ -40,6 +40,7 @@ #include "mxf.h" #include "types.h" +#include "language_tag.h" #include "metadata.h" #include "sound_frame.h" #include "sound_asset_reader.h" @@ -56,9 +57,9 @@ class SoundAsset : public Asset, public MXF { public: explicit SoundAsset (boost::filesystem::path file); - SoundAsset (Fraction edit_rate, int sampling_rate, int channels, Standard standard); + SoundAsset (Fraction edit_rate, int sampling_rate, int channels, LanguageTag language, Standard standard); - boost::shared_ptr start_write (boost::filesystem::path file, bool atmos_sync = false); + boost::shared_ptr start_write (boost::filesystem::path file, std::vector active_channels, bool atmos_sync = false); boost::shared_ptr start_read () const; bool equals ( @@ -85,6 +86,10 @@ public: return _intrinsic_duration; } + LanguageTag language () const { + return _language; + } + static bool valid_mxf (boost::filesystem::path); static std::string static_pkl_type (Standard standard); @@ -102,6 +107,7 @@ private: int64_t _intrinsic_duration; int _channels; ///< number of channels int _sampling_rate; ///< sampling rate in Hz + LanguageTag _language; }; }