Add Resampler::channels().
authorCarl Hetherington <cth@carlh.net>
Tue, 15 Aug 2023 13:46:30 +0000 (15:46 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 15 Aug 2023 16:27:09 +0000 (18:27 +0200)
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;