Fix incorrect reels when the first content is not at time 0.
[dcpomatic.git] / src / lib / audio_ring_buffers.h
index ce0efd3e2c585569ccdc7f127618a69700083dde..8d830ecf78046f77e39012f1877f0bf0391968e6 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2016-2017 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2016-2019 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -35,6 +35,7 @@ public:
 
        void put (boost::shared_ptr<const AudioBuffers> data, DCPTime time, int frame_rate);
        boost::optional<DCPTime> get (float* out, int channels, int frames);
+       boost::optional<DCPTime> peek () const;
 
        void clear ();
        Frame size () const;