summaryrefslogtreecommitdiff
path: root/src/reel_sound_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-24 04:15:26 +0100
commitceaf7bc52712cb60708ed5eb5c62c5e463dd8e89 (patch)
treec55e4b85ee30138ce83263045d77d01631378b2e /src/reel_sound_asset.cc
parent6c37cc1979b2a01205a888c4c98f3334685ee8dd (diff)
Tidying.
Diffstat (limited to 'src/reel_sound_asset.cc')
-rw-r--r--src/reel_sound_asset.cc15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/reel_sound_asset.cc b/src/reel_sound_asset.cc
index 52095999..d3cc41d1 100644
--- a/src/reel_sound_asset.cc
+++ b/src/reel_sound_asset.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -31,19 +31,23 @@
files in the program, then also delete it here.
*/
+
/** @file src/reel_sound_asset.cc
- * @brief ReelSoundAsset class.
+ * @brief ReelSoundAsset class
*/
+
#include "reel_sound_asset.h"
#include "dcp_assert.h"
#include <libcxml/cxml.h>
#include <libxml++/libxml++.h>
+
using std::string;
using std::shared_ptr;
using namespace dcp;
+
ReelSoundAsset::ReelSoundAsset (shared_ptr<SoundAsset> asset, int64_t entry_point)
: ReelAsset (asset->id(), asset->edit_rate(), asset->intrinsic_duration(), entry_point)
, ReelMXF (asset, asset->key_id())
@@ -51,6 +55,7 @@ ReelSoundAsset::ReelSoundAsset (shared_ptr<SoundAsset> asset, int64_t entry_poin
}
+
ReelSoundAsset::ReelSoundAsset (shared_ptr<const cxml::Node> node)
: ReelAsset (node)
, ReelMXF (node)
@@ -59,26 +64,30 @@ ReelSoundAsset::ReelSoundAsset (shared_ptr<const cxml::Node> node)
node->done ();
}
+
string
ReelSoundAsset::cpl_node_name (Standard) const
{
return "MainSound";
}
+
string
ReelSoundAsset::key_type () const
{
return "MDAK";
}
+
xmlpp::Node *
ReelSoundAsset::write_to_cpl (xmlpp::Node* node, Standard standard) const
{
- xmlpp::Node* asset = write_to_cpl_asset (node, standard, hash());
+ auto asset = write_to_cpl_asset (node, standard, hash());
write_to_cpl_mxf (asset);
return asset;
}
+
bool
ReelSoundAsset::equals (shared_ptr<const ReelSoundAsset> other, EqualityOptions opt, NoteHandler note) const
{