Slight hack to reduce the chance of config files looking different
[dcpomatic.git] / src / lib / audio_delay.cc
index 893773ddd27a5304539ff3d2e0d95f59f7394cb7..167c522e8f7ebfa01f0ba3b86f2f15855e937962 100644 (file)
@@ -24,7 +24,7 @@
 #include <iostream>
 
 using std::cout;
-using boost::shared_ptr;
+using std::shared_ptr;
 
 AudioDelay::AudioDelay (int samples)
        : _samples (samples)
@@ -71,7 +71,7 @@ AudioDelay::run (shared_ptr<const AudioBuffers> in)
                }
 
                /* Shuffle the tail down */
-               _tail->move (out->frames(), 0, _tail->frames() - out->frames());
+               _tail->move (_tail->frames() - out->frames(), out->frames(), 0);
 
                /* Copy input into the tail */
                _tail->copy_from (in.get(), in->frames(), 0, _tail->frames() - in->frames());