diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-03-01 21:01:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-04-19 23:04:32 +0100 |
| commit | 1addecdc3cfb05a70e9660cf040111370fbca118 (patch) | |
| tree | 032f7b28b70b5f0b8eb3c21a30af69d5759b5d21 /test/silence_padding_test.cc | |
| parent | 8023198eccfc212f18575834ae47af0a15903cda (diff) | |
Small but innocuous offset bugs.
Diffstat (limited to 'test/silence_padding_test.cc')
| -rw-r--r-- | test/silence_padding_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/silence_padding_test.cc b/test/silence_padding_test.cc index 9791b7172..1eb502007 100644 --- a/test/silence_padding_test.cc +++ b/test/silence_padding_test.cc @@ -80,13 +80,13 @@ test_silence_padding (int channels) if (sound_asset->asset()->channels() > 0) { /* L should be silent */ - int const sample = d[i + 0] | (d[i + 1] << 8); + int const sample = d[i + 1] | (d[i + 2] << 8); BOOST_CHECK_EQUAL (sample, 0); } if (sound_asset->asset()->channels() > 1) { /* R should be silent */ - int const sample = d[i + 2] | (d[i + 3] << 8); + int const sample = d[i + 4] | (d[i + 5] << 8); BOOST_CHECK_EQUAL (sample, 0); } @@ -98,20 +98,20 @@ test_silence_padding (int channels) if (sound_asset->asset()->channels() > 3) { /* Lfe should be silent */ - int const sample = d[i + 9] | (d[i + 10] << 8); + int const sample = d[i + 10] | (d[i + 11] << 8); BOOST_CHECK_EQUAL (sample, 0); } if (sound_asset->asset()->channels() > 4) { /* Ls should be silent */ - int const sample = d[i + 11] | (d[i + 12] << 8); + int const sample = d[i + 13] | (d[i + 14] << 8); BOOST_CHECK_EQUAL (sample, 0); } if (sound_asset->asset()->channels() > 5) { /* Rs should be silent */ - int const sample = d[i + 13] | (d[i + 14] << 8); + int const sample = d[i + 16] | (d[i + 17] << 8); BOOST_CHECK_EQUAL (sample, 0); } |
