diff options
Diffstat (limited to 'common/polyphase_resampler.h')
-rw-r--r-- | common/polyphase_resampler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/polyphase_resampler.h b/common/polyphase_resampler.h index 0b343d5a..557485bb 100644 --- a/common/polyphase_resampler.h +++ b/common/polyphase_resampler.h @@ -37,6 +37,8 @@ struct PPhaseResampler { void init(const uint srcRate, const uint dstRate); void process(const uint inN, const double *in, const uint outN, double *out); + explicit operator bool() const noexcept { return !mF.empty(); } + private: uint mP, mQ, mM, mL; std::vector<double> mF; |