summaryrefslogtreecommitdiff
path: root/src/sound_frame.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-28 19:15:03 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-28 19:15:03 +0100
commiteb772d227c378e17c99b5d609b81d0cc4b664d2c (patch)
treeccc3b4c75316d76fd441767e29ed1e0d8d3908a6 /src/sound_frame.h
parentfba372ef15a9dd9c6f840e5c03bdb85146657955 (diff)
parent5aba207171b7f1da91968bf2197c5668e8aacb4e (diff)
Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
Diffstat (limited to 'src/sound_frame.h')
-rw-r--r--src/sound_frame.h36
1 files changed, 3 insertions, 33 deletions
diff --git a/src/sound_frame.h b/src/sound_frame.h
index 3cd3246b..2b78c8e1 100644
--- a/src/sound_frame.h
+++ b/src/sound_frame.h
@@ -38,42 +38,12 @@
#ifndef LIBDCP_SOUND_FRAME_H
#define LIBDCP_SOUND_FRAME_H
-#include <boost/noncopyable.hpp>
-#include <boost/filesystem.hpp>
-#include <stdint.h>
-#include <string>
-
-namespace ASDCP {
- namespace PCM {
- class FrameBuffer;
- class MXFReader;
- }
- class AESDecContext;
-}
+#include "frame.h"
+#include <asdcp/AS_DCP.h>
namespace dcp {
-class DecryptionContext;
-
-/** @class SoundFrame
- * @brief One &lsquo;frame&rsquo; of sound data from a SoundAsset.
- */
-class SoundFrame : public boost::noncopyable
-{
-public:
- ~SoundFrame ();
-
- uint8_t const * data () const;
- int size () const;
-
-private:
- friend class SoundAssetReader;
-
- SoundFrame (ASDCP::PCM::MXFReader* reader, int n, boost::shared_ptr<DecryptionContext>);
-
- /** a buffer to hold the frame */
- ASDCP::PCM::FrameBuffer* _buffer;
-};
+typedef Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer> SoundFrame;
}