X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Freel_sound_asset.h;h=fd1a63fe60046511015b041839d065fa37ac0268;hb=8f7a014e6d11c107b520ac3c869b1cc7bef1bbd0;hp=9902faa42da0b43d21ddad137993d8b59d3aa319;hpb=82787546680784a2a6e0993ab5b570f0db3a2d4d;p=libdcp.git diff --git a/src/reel_sound_asset.h b/src/reel_sound_asset.h index 9902faa4..fd1a63fe 100644 --- a/src/reel_sound_asset.h +++ b/src/reel_sound_asset.h @@ -21,7 +21,8 @@ * @brief ReelSoundAsset class. */ -#include "reel_encryptable_asset.h" +#include "reel_mxf.h" +#include "reel_asset.h" #include "sound_asset.h" #include #include @@ -29,9 +30,9 @@ namespace dcp { /** @class ReelSoundAsset - * @brief Part of a Reel's description which refers to a sound MXF. + * @brief Part of a Reel's description which refers to a sound asset. */ -class ReelSoundAsset : public ReelEncryptableAsset +class ReelSoundAsset : public ReelAsset, public ReelMXF { public: ReelSoundAsset (boost::shared_ptr content, int64_t entry_point); @@ -41,18 +42,17 @@ public: /** @return the SoundAsset that this object refers to */ boost::shared_ptr asset () { - return boost::dynamic_pointer_cast (_asset_ref.object ()); + return asset_of_type (); } /** @return the SoundAsset that this object refers to */ boost::shared_ptr asset () const { - return boost::dynamic_pointer_cast (_asset_ref.object ()); + return asset_of_type (); } - + private: std::string key_type () const; std::string cpl_node_name () const; }; } -