{
RNGFixer fixer;
- make_simple("build/test/DCP/dcp_test1")->write_xml(
- "OpenDCP 0.0.25", "OpenDCP 0.0.25", "2012-07-17T04:45:18+00:00", "A Test DCP"
- );
+ auto dcp = make_simple("build/test/DCP/dcp_test1");
+ dcp->set_issuer("OpenDCP 0.0.25");
+ dcp->set_creator("OpenDCP 0.0.25");
+ dcp->set_issue_date("2012-07-17T04:45:18+00:00");
+ dcp->set_annotation_text("A Test DCP");
+ dcp->write_xml();
/* build/test/DCP/dcp_test1 is checked against test/ref/DCP/dcp_test1 by run/tests */
}
channels[0] = buffer;
while (true) {
auto N = sf_readf_float (sndfile, buffer, 4096);
- sound_writer->write (channels, N);
+ sound_writer->write(channels, 1, N);
if (N < 4096) {
break;
}
d.add (cpl);
- d.write_xml ("OpenDCP 0.0.25", "OpenDCP 0.0.25", "2012-07-17T04:45:18+00:00", "Created by libdcp");
+ d.set_issuer("OpenDCP 0.0.25");
+ d.set_creator("OpenDCP 0.0.25");
+ d.set_issue_date("2012-07-17T04:45:18+00:00");
+ d.set_annotation_text("Created by libdcp");
+ d.write_xml();
/* build/test/DCP/dcp_test2 is checked against test/ref/DCP/dcp_test2 by run/tests */
}
}
}
}
- writer->write (out, sf->samples());
+ writer->write(out, sf->channels(), sf->samples());
for (int j = 0; j < sf->channels(); ++j) {
delete[] out[j];
}
channels[0] = buffer;
while (true) {
sf_count_t N = sf_readf_float (sndfile, buffer, 4096);
- sound_writer->write (channels, N);
+ sound_writer->write(channels, 1, N);
if (N < 4096) {
break;
}
d.add (cpl);
- d.write_xml ("OpenDCP 0.0.25", "OpenDCP 0.0.25", "2012-07-17T04:45:18+00:00", "Created by libdcp");
+ d.set_issuer("OpenDCP 0.0.25");
+ d.set_creator("OpenDCP 0.0.25");
+ d.set_issue_date("2012-07-17T04:45:18+00:00");
+ d.set_annotation_text("Created by libdcp");
+ d.write_xml();
/* build/test/DCP/dcp_test5 is checked against test/ref/DCP/dcp_test5 by run/tests */
}
{
RNGFixer fix;
- make_simple("build/test/DCP/dcp_test7", 1, 24, dcp::Standard::INTEROP)->write_xml(
- "OpenDCP 0.0.25", "OpenDCP 0.0.25", "2012-07-17T04:45:18+00:00", "Created by libdcp"
- );
+ auto dcp = make_simple("build/test/DCP/dcp_test7", 1, 24, dcp::Standard::INTEROP);
+ dcp->set_issuer("OpenDCP 0.0.25");
+ dcp->set_creator("OpenDCP 0.0.25");
+ dcp->set_issue_date("2012-07-17T04:45:18+00:00");
+ dcp->set_annotation_text("Created by libdcp");
+ dcp->write_xml();
/* build/test/DCP/dcp_test7 is checked against test/ref/DCP/dcp_test7 by run/tests */
}