X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fbutler.h;h=79701d3701e16273e6decb93ad6d268b2b489de5;hb=8987f133295e352c44e05ef338eacc801c61a629;hp=c7e71658da25889107d033147e62b16897f92f4d;hpb=b6fb82e5df5551497b823f20a75c7ff94ffd1b3e;p=dcpomatic.git diff --git a/src/lib/butler.h b/src/lib/butler.h index c7e71658d..79701d370 100644 --- a/src/lib/butler.h +++ b/src/lib/butler.h @@ -38,6 +38,12 @@ class PlayerVideo; class Butler : public ExceptionStore { public: + enum class Audio + { + ENABLED, + DISABLED + }; + Butler ( std::weak_ptr film, std::shared_ptr player, @@ -47,7 +53,8 @@ public: VideoRange video_range, Image::Alignment alignment, bool fast, - bool prepare_only_proxy + bool prepare_only_proxy, + Audio audio ); ~Butler (); @@ -81,8 +88,6 @@ public: boost::optional get_audio (Behaviour behaviour, float* out, Frame frames); boost::optional get_closed_caption (); - void disable_audio (); - std::pair memory_used () const; private: