diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-24 23:41:53 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-24 23:41:56 +0200 |
| commit | 0bbb2e9c99845ce7b6056048356a9710119cdbd9 (patch) | |
| tree | eb70a2aa59f63de542ab4e813cec5785bb4f764a /src/sound_frame.h | |
| parent | cc6a2fe7ee05718d549e72eb740d0eae290f8ecb (diff) | |
Report bit depth from sound frame, and handle 16-bit.v1.9.8
Diffstat (limited to 'src/sound_frame.h')
| -rw-r--r-- | src/sound_frame.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sound_frame.h b/src/sound_frame.h index 0f5021e2..72ab5925 100644 --- a/src/sound_frame.h +++ b/src/sound_frame.h @@ -54,10 +54,16 @@ public: 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; }; |
