Emit no audio from DCPs if none is mapped
[dcpomatic.git] / src / lib / resampler.h
index 95b71c222e814570a8f1a5bc6cf92bfb7244df5f..e53e3f1070f05096efadf024d3bd340e096a0c2f 100644 (file)
@@ -40,6 +40,10 @@ public:
        void reset ();
        void set_fast ();
 
+       int channels() const {
+               return _channels;
+       }
+
 private:
        SRC_STATE* _src = nullptr;
        int _in_rate;