diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-15 00:41:40 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-05-15 00:41:40 +0200 |
| commit | 4fde16b72c4979f108f3cbe759da2a6d9c7f4ccf (patch) | |
| tree | 1781ec7a0064ebc064a1ea8a3f6b6d6035227699 /examples | |
| parent | 7777eed2b60d40915b5f4cc8330b1f5207feb3b3 (diff) | |
Style/formatting tweaks.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/make_dcp.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/make_dcp.cc b/examples/make_dcp.cc index a99d4ef0..6e0961a5 100644 --- a/examples/make_dcp.cc +++ b/examples/make_dcp.cc @@ -64,7 +64,7 @@ main () /* Write 24 frames of the same JPEG2000 file */ dcp::ArrayData picture("examples/help.j2c"); for (int i = 0; i < 24; ++i) { - picture_writer->write (picture); + picture_writer->write(picture); } /* And finish off */ @@ -80,8 +80,8 @@ main () std::array<float, 48000> left; std::array<float, 48000> right; for (int i = 0; i < 48000; ++i) { - left[i] = sin (2 * M_PI * i * 440 / 48000) * 0.25; - right[i] = sin (2 * M_PI * i * 880 / 48000) * 0.25; + left[i] = sin(2 * M_PI * i * 440 / 48000) * 0.25; + right[i] = sin(2 * M_PI * i * 880 / 48000) * 0.25; } std::array<float*, 2> audio; audio[0] = left.data(); @@ -89,7 +89,7 @@ main () sound_writer->write(audio.data(), 2, 48000); /* And finish off */ - sound_writer->finalize (); + sound_writer->finalize(); /* Now create a reel */ auto reel = std::make_shared<dcp::Reel>(); @@ -105,9 +105,9 @@ main () cpl->add(reel); /* Write the DCP */ - dcp::DCP dcp ("DCP"); - dcp.add (cpl); - dcp.write_xml (); + auto dcp = dcp::DCP("DCP"); + dcp.add(cpl); + dcp.write_xml(); return 0; } |
