diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-03 14:25:11 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-03 14:25:11 +0000 |
| commit | 479629b2a8fd1b6341e76d7aaa5cf9e6507d5634 (patch) | |
| tree | b1da3f5fbb6c0111a33b528d101ff75e2076b675 /src | |
| parent | dd3dbb617b90fe7ff75e72fbb99a303b12880432 (diff) | |
| parent | 5700bcadb7378ac018b2879a8d128ba6b098b6b8 (diff) | |
Fix merge.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sound_asset.cc | 7 | ||||
| -rw-r--r-- | src/types.h | 14 |
2 files changed, 14 insertions, 7 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 |
