Reasonably straightforward stuff; main things are adding
[dcpomatic.git] / test / audio_decoder_test.cc
index 8af5dfb11102585764fe89bbc8678bca3801c7b0..2c6794a7604f8fd45df29b88a8e4734533894d3e 100644 (file)
@@ -26,6 +26,7 @@
 #include "test.h"
 #include "lib/audio_decoder.h"
 #include "lib/single_stream_audio_content.h"
+#include <iostream>
 
 using std::string;
 using std::cout;
@@ -51,7 +52,7 @@ public:
        }
 
        Frame audio_length () const {
-               return rint (61.2942 * audio_stream()->frame_rate ());
+               return llrint (61.2942 * audio_stream()->frame_rate ());
        }
 };
 
@@ -59,12 +60,12 @@ class TestAudioDecoder : public AudioDecoder
 {
 public:
        TestAudioDecoder (shared_ptr<TestAudioContent> content)
-               : AudioDecoder (content)
+               : AudioDecoder (content, false)
                , _test_audio_content (content)
                , _position (0)
        {}
 
-       bool pass ()
+       bool pass (PassReason, bool)
        {
                Frame const N = min (
                        Frame (2000),