From 89df429dc7df08143da7b96fc428cde8bfa88a8e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Aug 2023 15:46:30 +0200 Subject: Add Resampler::channels(). --- src/lib/resampler.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/resampler.h b/src/lib/resampler.h index 95b71c222..e53e3f107 100644 --- a/src/lib/resampler.h +++ b/src/lib/resampler.h @@ -40,6 +40,10 @@ public: void reset (); void set_fast (); + int channels() const { + return _channels; + } + private: SRC_STATE* _src = nullptr; int _in_rate; -- cgit v1.2.3