Rename DEVELOPMENT -> DEVELOP.md and add some stuff about player stress testing.
[dcpomatic.git] / test / audio_buffers_test.cc
index 25be3fe4bcfd0671849dc58f66e5fc4feaf83785..921592f55072ea6f94fc4da6cc2e84fcba2b5a58 100644 (file)
@@ -19,7 +19,8 @@
 */
 
 /** @file  test/audio_buffers_test.cc
- *  @brief Test AudioBuffers in various ways.
+ *  @brief Test AudioBuffers class.
+ *  @ingroup selfcontained
  */
 
 #include <cmath>
@@ -228,7 +229,7 @@ BOOST_AUTO_TEST_CASE (audio_buffers_move)
        int const to = 666;
        int const frames = 444;
 
-       buffers.move (from, to, frames);
+       buffers.move (frames, from, to);
 
        /* Re-seed and check the un-moved parts */
        srand (84);
@@ -288,7 +289,7 @@ BOOST_AUTO_TEST_CASE (audio_buffers_accumulate_frames)
        AudioBuffers b (3, 256);
        random_fill (b);
 
-       a.accumulate_frames (&b, 91, 44, 129);
+       a.accumulate_frames (&b, 129, 91, 44);
 
        srand (38);
        for (int i = 0; i < 256; ++i) {