{
auto film = new_test_film ("required_disk_space_test");
film->set_j2k_bandwidth (100000000);
- film->set_audio_channels (6);
+ film->set_audio_channels(8);
film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
auto content_a = content_factory("test/data/flat_blue.png")[0];
BOOST_REQUIRE (content_a);
check_within_n (
film->required_disk_space(),
288LL * (100000000 / 8) / 24 + // video
- 288LL * 48000 * 6 * 3 / 24 + // audio
+ 288LL * 48000 * 8 * 3 / 24 + // audio
65536, // extra
16
);
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
- 288LL * 48000 * 6 * 3 / 24 + // audio
+ 288LL * 48000 * 8 * 3 / 24 + // audio
65536, // extra
16
);
+ std::string why_not;
+ BOOST_CHECK(content_b->can_reference_audio(film, why_not));
content_b->set_reference_audio (true);
check_within_n (
film->required_disk_space(),
240LL * (100000000 / 8) / 24 + // video
- 240LL * 48000 * 6 * 3 / 24 + // audio
+ 240LL * 48000 * 8 * 3 / 24 + // audio
65536, // extra
16
);
/* Multi-reel DCP can't be referenced if we are using a single reel for the project */
film->set_reel_type (ReelType::SINGLE);
+ film->set_audio_channels(16);
string why_not;
BOOST_CHECK (!dcp->can_reference_video(film, why_not));
BOOST_CHECK (!dcp->can_reference_audio(film, why_not));