Specify number of channels in the data passed to SoundAssetWriter, and pad channels...
[libdcp.git] / test / decryption_test.cc
index be688908a412e1920a98fc9fdc7800de19a7718e..c24402bffa0f27146d43878eb482b8a01b3b7c3f 100644 (file)
@@ -175,7 +175,7 @@ BOOST_AUTO_TEST_CASE (decryption_test2)
        std::array<float*, 2> audio;
        audio[0] = left.data();
        audio[1] = right.data();
-       sound_writer->write (audio.data(), 48000);
+       sound_writer->write(audio.data(), 2, 48000);
        sound_writer->finalize ();
 
        auto subs_asset = std::make_shared<dcp::SMPTESubtitleAsset>();