summaryrefslogtreecommitdiff
path: root/src/sound_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-06 20:10:13 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-21 21:57:18 +0200
commitcdc8bc6a7da0b4f8c3dbfcf560fea61473cf1ca3 (patch)
tree6f6fc0c6b7897e6d3bd48fcc27e0e5eb08fc92b9 /src/sound_asset.h
parent445f2495fbb0885132d3a6c8e7a1e135cbac3cce (diff)
Support MCA sound channel tags in MXF/CPL.
Diffstat (limited to 'src/sound_asset.h')
-rw-r--r--src/sound_asset.h12
1 files changed, 9 insertions, 3 deletions
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 <cth@carlh.net>
+ Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net>
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<SoundAssetWriter> start_write (boost::filesystem::path file, bool atmos_sync = false);
+ boost::shared_ptr<SoundAssetWriter> start_write (boost::filesystem::path file, std::vector<Channel> active_channels, bool atmos_sync = false);
boost::shared_ptr<SoundAssetReader> 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;
};
}