diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-03 14:18:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-03 14:18:44 +0000 |
| commit | 92023f3a3b8c3b9af96473f54c674b61a8df6d59 (patch) | |
| tree | 7cca16005832df77f5a4ce09f55dbdd321bc2752 /src/sound_asset.cc | |
| parent | 211986cf675e7bdb8bb51f17416cba040b6f0d80 (diff) | |
Prevent crashes with 8 channel sound assets.
Diffstat (limited to 'src/sound_asset.cc')
| -rw-r--r-- | src/sound_asset.cc | 7 |
1 files changed, 6 insertions, 1 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]; |
