diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/test.cc | 4 | ||||
| -rw-r--r-- | test/test.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/test.cc b/test/test.cc index 450ff514..fb4f48c5 100644 --- a/test/test.cc +++ b/test/test.cc @@ -292,10 +292,8 @@ simple_picture (boost::filesystem::path path, string suffix, int frames, optiona shared_ptr<dcp::SoundAsset> -simple_sound (boost::filesystem::path path, string suffix, dcp::MXFMetadata mxf_meta, string language, int frames, int sample_rate, optional<dcp::Key> key) +simple_sound(boost::filesystem::path path, string suffix, dcp::MXFMetadata mxf_meta, string language, int frames, int sample_rate, optional<dcp::Key> key, int channels) { - int const channels = 6; - /* Set a valid language, then overwrite it, so that the language parameter can be badly formed */ auto ms = make_shared<dcp::SoundAsset>(dcp::Fraction(24, 1), sample_rate, channels, dcp::LanguageTag("en-US"), dcp::Standard::SMPTE); if (key) { diff --git a/test/test.h b/test/test.h index 339dd8aa..82e6afd5 100644 --- a/test/test.h +++ b/test/test.h @@ -56,7 +56,8 @@ extern std::shared_ptr<dcp::SoundAsset> simple_sound ( std::string language, int frames = 24, int sample_rate = 48000, - boost::optional<dcp::Key> key = boost::optional<dcp::Key>() + boost::optional<dcp::Key> key = boost::optional<dcp::Key>(), + int channels = 6 ); extern std::shared_ptr<dcp::Subtitle> simple_subtitle (); extern std::shared_ptr<dcp::ReelMarkersAsset> simple_markers (int frames = 24); |
