Pass MainSoundConfiguration object rather than a string.
[libdcp.git] / src / atmos_asset_writer.h
index c78174f1d59d9e83112633e1ce31a63e88eaee52..eebb0d6c28120fa03a129b28f24239994e483fdd 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
-#ifndef LIBDCP_ATMOS_ASSET_WRITER_H
-#define LIBDCP_ATMOS_ASSET_WRITER_H
 
 /** @file  src/atmos_asset_writer.h
- *  @brief AtmosAssetWriter class.
+ *  @brief AtmosAssetWriter class
  */
 
+
+#ifndef LIBDCP_ATMOS_ASSET_WRITER_H
+#define LIBDCP_ATMOS_ASSET_WRITER_H
+
+
 #include "asset_writer.h"
 #include "types.h"
 #include "atmos_frame.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/filesystem.hpp>
 
+
 namespace dcp {
 
+
 class AtmosAsset;
 
+
 /** @class AtmosAssetWriter
  *  @brief A helper class for writing to AtmosAssets.
  *
@@ -56,9 +62,9 @@ class AtmosAsset;
 class AtmosAssetWriter : public AssetWriter
 {
 public:
-       void write (boost::shared_ptr<const AtmosFrame> frame);
+       void write (std::shared_ptr<const AtmosFrame> frame);
        void write (uint8_t const * data, int size);
-       bool finalize ();
+       bool finalize () override;
 
 private:
        friend class AtmosAsset;
@@ -69,11 +75,13 @@ private:
           ASDCP headers
        */
        struct ASDCPState;
-       boost::shared_ptr<ASDCPState> _state;
+       std::shared_ptr<ASDCPState> _state;
 
        AtmosAsset* _asset;
 };
 
+
 }
 
+
 #endif