summaryrefslogtreecommitdiff
path: root/src/sound_asset.cc
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.cc
parenta4930f8185f2d3f3a9dc93b938792fae758be4d7 (diff)
Check that DCPs have 24-bit audio.
Diffstat (limited to 'src/sound_asset.cc')
-rw-r--r--src/sound_asset.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc
index 90075278..c73255b8 100644
--- a/src/sound_asset.cc
+++ b/src/sound_asset.cc
@@ -83,6 +83,7 @@ SoundAsset::SoundAsset (boost::filesystem::path file)
}
_sampling_rate = desc.AudioSamplingRate.Denominator ? (desc.AudioSamplingRate.Numerator / desc.AudioSamplingRate.Denominator) : 0;
+ _bit_depth = desc.QuantizationBits;
_channels = desc.ChannelCount;
_edit_rate = Fraction (desc.EditRate.Numerator, desc.EditRate.Denominator);