Config option to disable preview audio.
[dcpomatic.git] / src / lib / butler.h
index 101677558ab8128360d053548648a048e7b997b4..948a78ea5f64d79dfa82c9ddc864f48b56556927 100644 (file)
@@ -42,11 +42,14 @@ public:
        std::pair<boost::shared_ptr<PlayerVideo>, DCPTime> get_video ();
        void get_audio (float* out, Frame frames);
 
+       void disable_audio ();
+
 private:
        void thread ();
        void video (boost::shared_ptr<PlayerVideo> video, DCPTime time);
        void audio (boost::shared_ptr<AudioBuffers> audio, DCPTime time);
        void player_changed ();
+       bool should_run () const;
 
        boost::weak_ptr<const Film> _film;
        boost::shared_ptr<Player> _player;
@@ -67,6 +70,7 @@ private:
        int _audio_channels;
 
        bool _stop_thread;
+       bool _disable_audio;
 
        boost::signals2::scoped_connection _player_video_connection;
        boost::signals2::scoped_connection _player_audio_connection;