summaryrefslogtreecommitdiff
path: root/src/lib/resampler.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-15 15:46:30 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-15 18:27:09 +0200
commit89df429dc7df08143da7b96fc428cde8bfa88a8e (patch)
treefa55b57e2afa4d0376797e5210e3825e60fb2f36 /src/lib/resampler.h
parenta7ed400c81c65a11623418d08cd5c953826754bd (diff)
Add Resampler::channels().
Diffstat (limited to 'src/lib/resampler.h')
-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;