Tidying.
[libdcp.git] / src / sound_frame.h
index 2b78c8e1d1116ae2e4ad600c838882d919e8ecfc..85082299e957c0c7b5aa1a721fc2543f7bb02d07 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
 /** @file  src/sound_frame.h
- *  @brief SoundFrame class.
+ *  @brief SoundFrame class
  */
 
+
 #ifndef LIBDCP_SOUND_FRAME_H
 #define LIBDCP_SOUND_FRAME_H
 
+
 #include "frame.h"
 #include <asdcp/AS_DCP.h>
 
+
 namespace dcp {
 
-typedef Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer> SoundFrame;
+
+class SoundFrame : public Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer>
+{
+public:
+       SoundFrame (ASDCP::PCM::MXFReader* reader, int n, std::shared_ptr<const DecryptionContext> c);
+       int channels () const;
+       int samples () const;
+       int32_t get (int channel, int sample) const;
+
+private:
+       int _channels = 0;
+};
+
 
 }
 
+
 #endif