Fix erroneous extra character.
[libdcp.git] / src / reel_sound_asset.h
index 9902faa42da0b43d21ddad137993d8b59d3aa319..fd1a63fe60046511015b041839d065fa37ac0268 100644 (file)
@@ -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 <boost/shared_ptr.hpp>
 #include <string>
@@ -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<dcp::SoundAsset> content, int64_t entry_point);
@@ -41,18 +42,17 @@ public:
 
        /** @return the SoundAsset that this object refers to */
        boost::shared_ptr<SoundAsset> asset () {
-               return boost::dynamic_pointer_cast<SoundAsset> (_asset_ref.object ());
+               return asset_of_type<SoundAsset> ();
        }
 
        /** @return the SoundAsset that this object refers to */
        boost::shared_ptr<const SoundAsset> asset () const {
-               return boost::dynamic_pointer_cast<const SoundAsset> (_asset_ref.object ());
+               return asset_of_type<const SoundAsset> ();
        }
-       
+
 private:
        std::string key_type () const;
        std::string cpl_node_name () const;
 };
 
 }
-