Runs.
[dcpomatic.git] / src / lib / encoder.h
index 69a5c5a2378c67e31dbe4d033474483b2c038fc4..c84ee027addcad0eae79e257e42c36cf0a1478f5 100644 (file)
@@ -51,6 +51,7 @@ class ServerDescription;
 class DCPVideoFrame;
 class EncodedData;
 class Writer;
+class Playlist;
 
 /** @class Encoder
  *  @brief Encoder to J2K and WAV for DCP.
@@ -62,7 +63,7 @@ class Writer;
 class Encoder : public VideoSink, public AudioSink
 {
 public:
-       Encoder (boost::shared_ptr<Film> f);
+       Encoder (boost::shared_ptr<Film> f, boost::shared_ptr<Playlist>);
        virtual ~Encoder ();
 
        /** Called to indicate that a processing run is about to begin */
@@ -88,13 +89,14 @@ private:
        
        void frame_done ();
        
-       void write_audio (boost::shared_ptr<const AudioBuffers> audio);
+       void write_audio (boost::shared_ptr<const AudioBuffers> data);
 
        void encoder_thread (ServerDescription *);
        void terminate_threads ();
 
        /** Film that we are encoding */
        boost::shared_ptr<Film> _film;
+       boost::shared_ptr<Playlist> _playlist;
 
        /** Mutex for _time_history and _last_frame */
        mutable boost::mutex _history_mutex;