summaryrefslogtreecommitdiff
path: root/src/sound_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-09 13:13:23 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-17 20:13:22 +0100
commit8edf0af514e285454a15f14561519608e6d6aad9 (patch)
treefd2c6727c2c26a6f3c8279ef4a194296ffb778dc /src/sound_asset.h
parent0b39df958f534068950669a763be7b4602740107 (diff)
Bv2.1 6.2.1: Check that the sound MXF Language tag conforms to RFC 5646.
Diffstat (limited to 'src/sound_asset.h')
-rw-r--r--src/sound_asset.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sound_asset.h b/src/sound_asset.h
index 91a213b8..d4b41a1a 100644
--- a/src/sound_asset.h
+++ b/src/sound_asset.h
@@ -45,6 +45,16 @@
#include "sound_frame.h"
#include "sound_asset_reader.h"
+
+namespace dcp {
+ class SoundAsset;
+}
+
+extern std::shared_ptr<dcp::SoundAsset> simple_sound (
+ boost::filesystem::path path, std::string suffix, dcp::MXFMetadata mxf_meta, std::string language
+ );
+
+
namespace dcp
{
@@ -95,6 +105,9 @@ public:
private:
friend class SoundAssetWriter;
+ friend std::shared_ptr<dcp::SoundAsset> (::simple_sound) (
+ boost::filesystem::path path, std::string suffix, dcp::MXFMetadata mxf_meta, std::string language
+ );
std::string pkl_type (Standard standard) const {
return static_pkl_type (standard);