Report bit depth from sound frame, and handle 16-bit.
[libdcp.git] / src / sound_frame.h
index 85082299e957c0c7b5aa1a721fc2543f7bb02d07..72ab5925c13a510ba991225a84f393b0a667b7ac 100644 (file)
@@ -51,13 +51,19 @@ namespace dcp {
 class SoundFrame : public Frame<ASDCP::PCM::MXFReader, ASDCP::PCM::FrameBuffer>
 {
 public:
-       SoundFrame (ASDCP::PCM::MXFReader* reader, int n, std::shared_ptr<const DecryptionContext> c);
+       SoundFrame (ASDCP::PCM::MXFReader* reader, int n, std::shared_ptr<const DecryptionContext> c, bool check_hmac);
        int channels () const;
        int samples () const;
+
+       int bits() const {
+               return _bits;
+       }
+
        int32_t get (int channel, int sample) const;
 
 private:
-       int _channels = 0;
+       int _channels;
+       int _bits;
 };