summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/resampler.h4
1 files changed, 4 insertions, 0 deletions
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;