Fix player audio, almost totally broken by a stupid mistake
[dcpomatic.git] / src / lib / dcp_examiner.h
index b51e7ae7a8e53d69cf406a05f2956599e5a22f89..1a3615867b4c101ac944b623e66af97ed632388f 100644 (file)
@@ -90,6 +90,10 @@ public:
                return _audio_channels.get_value_or (0);
        }
 
+       int active_audio_channels() const {
+               return _active_audio_channels.get_value_or(0);
+       }
+
        Frame audio_length () const override {
                return _audio_length;
        }
@@ -179,6 +183,7 @@ private:
        boost::optional<dcp::Size> _video_size;
        Frame _video_length = 0;
        boost::optional<int> _audio_channels;
+       boost::optional<int> _active_audio_channels;
        boost::optional<int> _audio_frame_rate;
        Frame _audio_length = 0;
        std::string _name;