summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-03 14:25:11 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-03 14:25:11 +0000
commit479629b2a8fd1b6341e76d7aaa5cf9e6507d5634 (patch)
treeb1da3f5fbb6c0111a33b528d101ff75e2076b675
parentdd3dbb617b90fe7ff75e72fbb99a303b12880432 (diff)
parent5700bcadb7378ac018b2879a8d128ba6b098b6b8 (diff)
Fix merge.
-rw-r--r--src/sound_asset.cc7
-rw-r--r--src/types.h14
-rw-r--r--wscript2
3 files changed, 15 insertions, 8 deletions
diff --git a/src/sound_asset.cc b/src/sound_asset.cc
index 0d0e1cd4..500a72e5 100644
--- a/src/sound_asset.cc
+++ b/src/sound_asset.cc
@@ -115,9 +115,14 @@ SoundAsset::construct (boost::function<string (Channel)> get_path)
CENTRE,
LFE,
LS,
- RS
+ RS,
+ /* XXX: not quite sure what these should be yet */
+ CHANNEL_7,
+ CHANNEL_8
};
+ assert (int(_channels) <= int(sizeof(channels) / sizeof(Channel)));
+
ASDCP::PCM::FrameBuffer frame_buffer_channel[_channels];
ASDCP::PCM::AudioDescriptor audio_desc_channel[_channels];
diff --git a/src/types.h b/src/types.h
index 133c229d..433a910c 100644
--- a/src/types.h
+++ b/src/types.h
@@ -29,12 +29,14 @@ namespace libdcp
/** Identifier for a sound channel */
enum Channel {
- LEFT = 0, ///< left
- RIGHT = 1, ///< right
- CENTRE = 2, ///< centre
- LFE = 3, ///< low-frequency effects (sub)
- LS = 4, ///< left surround
- RS = 5 ///< right surround
+ LEFT = 0, ///< left
+ RIGHT = 1, ///< right
+ CENTRE = 2, ///< centre
+ LFE = 3, ///< low-frequency effects (sub)
+ LS = 4, ///< left surround
+ RS = 5, ///< right surround
+ CHANNEL_7 = 6, ///< channel 7; not sure what this should be called
+ CHANNEL_8 = 7 ///< channel 8; not sure what this should be called
};
enum ContentKind
diff --git a/wscript b/wscript
index dab2ced0..4b507e5c 100644
--- a/wscript
+++ b/wscript
@@ -3,7 +3,7 @@ import os
import lut
APPNAME = 'libdcp'
-VERSION = '0.32pre'
+VERSION = '0.33pre'
def options(opt):
opt.load('compiler_cxx')