]> git.sesse.net Git - casparcg/blobdiff - core/video_channel.h
Created a consumer that provides sync to a channel based on the pace of another chann...
[casparcg] / core / video_channel.h
index b3ac548a7ff56b3107962e816ec4c4c6917d1b87..4c256b0dca24861fd28e9c6b147be78d0d3bc4df 100644 (file)
 
 #include <boost/property_tree/ptree_fwd.hpp>
 
+#include <functional>
+
 namespace caspar { namespace core {
-       
+
 class video_channel final
 {
        video_channel(const video_channel&);
@@ -50,7 +52,7 @@ public:
        ~video_channel();
 
        // Methods
-                       
+
        monitor::subject&                                               monitor_output();
 
        // Properties
@@ -67,6 +69,8 @@ public:
        core::audio_channel_layout                              audio_channel_layout() const;
        void                                                                    audio_channel_layout(const core::audio_channel_layout& channel_layout);
 
+       std::shared_ptr<void>                                   add_tick_listener(std::function<void()> listener);
+
        spl::shared_ptr<core::frame_factory>    frame_factory();
 
        boost::property_tree::wptree                    info() const;
@@ -77,4 +81,4 @@ private:
        spl::unique_ptr<impl> impl_;
 };
 
-}}
\ No newline at end of file
+}}