diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-06 16:45:18 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-06 16:45:18 +0000 |
| commit | 34b40f12d7eec52862999da9e4417fc8f6e0f9af (patch) | |
| tree | ea24126bc477d8fddceb6c1e001d4cadb302dd06 /test | |
| parent | 9314d6bdf8857bc6cd29b0596158f2d0ff787513 (diff) | |
Basics of per-channel audio gain.
Diffstat (limited to 'test')
| -rw-r--r-- | test/stream_test.cc | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/test/stream_test.cc b/test/stream_test.cc index 86bcc5a69..6d8938ca4 100644 --- a/test/stream_test.cc +++ b/test/stream_test.cc @@ -69,25 +69,12 @@ BOOST_AUTO_TEST_CASE (stream_test) BOOST_CHECK_EQUAL (a.channels, 2); BOOST_CHECK_EQUAL (a.name, "hello there world"); BOOST_CHECK_EQUAL (a.mapping.content_channels(), 2); - BOOST_CHECK_EQUAL (a.mapping.content_to_dcp().size(), 4); - list<pair<int, libdcp::Channel> > m = a.mapping.content_to_dcp (); - list<pair<int, libdcp::Channel> >::iterator i = m.begin(); - - BOOST_CHECK_EQUAL (i->first, 0); - BOOST_CHECK_EQUAL (i->second, libdcp::LEFT); - ++i; - - BOOST_CHECK_EQUAL (i->first, 0); - BOOST_CHECK_EQUAL (i->second, libdcp::CENTRE); - ++i; - - BOOST_CHECK_EQUAL (i->first, 1); - BOOST_CHECK_EQUAL (i->second, libdcp::RIGHT); - ++i; - - BOOST_CHECK_EQUAL (i->first, 1); - BOOST_CHECK_EQUAL (i->second, libdcp::CENTRE); - ++i; + BOOST_CHECK_EQUAL (a.mapping.get (0, libdcp::LEFT), 1); + BOOST_CHECK_EQUAL (a.mapping.get (0, libdcp::RIGHT), 0); + BOOST_CHECK_EQUAL (a.mapping.get (0, libdcp::CENTRE), 1); + BOOST_CHECK_EQUAL (a.mapping.get (1, libdcp::LEFT), 0); + BOOST_CHECK_EQUAL (a.mapping.get (1, libdcp::RIGHT), 1); + BOOST_CHECK_EQUAL (a.mapping.get (1, libdcp::CENTRE), 1); } |
