summaryrefslogtreecommitdiff
path: root/src/sound_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-24 22:58:32 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-24 23:41:56 +0200
commitcc6a2fe7ee05718d549e72eb740d0eae290f8ecb (patch)
treec760229e4f187b914ec37593258172668b32b94f /src/sound_asset.h
parenta4930f8185f2d3f3a9dc93b938792fae758be4d7 (diff)
Check that DCPs have 24-bit audio.
Diffstat (limited to 'src/sound_asset.h')
-rw-r--r--src/sound_asset.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sound_asset.h b/src/sound_asset.h
index e69c3988..e5acb119 100644
--- a/src/sound_asset.h
+++ b/src/sound_asset.h
@@ -115,6 +115,13 @@ public:
return _sampling_rate;
}
+ /** @return Bit depth of samples. This should always be 24, but we return it
+ * so the verification code can check
+ */
+ int bit_depth() const {
+ return _bit_depth;
+ }
+
Fraction edit_rate () const {
return _edit_rate;
}
@@ -148,6 +155,7 @@ private:
int _channels = 0; ///< number of channels in the MXF
boost::optional<int> _active_channels; ///< estimate of the number of active channels
int _sampling_rate = 0; ///< sampling rate in Hz
+ int _bit_depth = 24;
boost::optional<std::string> _language;
};