diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-08-15 15:46:30 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-08-15 18:27:09 +0200 |
| commit | 89df429dc7df08143da7b96fc428cde8bfa88a8e (patch) | |
| tree | fa55b57e2afa4d0376797e5210e3825e60fb2f36 /src/lib/resampler.h | |
| parent | a7ed400c81c65a11623418d08cd5c953826754bd (diff) | |
Add Resampler::channels().
Diffstat (limited to 'src/lib/resampler.h')
| -rw-r--r-- | src/lib/resampler.h | 4 |
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; |
