aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-01 19:50:05 -0800
committerChris Robinson <[email protected]>2023-01-01 19:50:05 -0800
commit2e98295fd78a45e444529d44b181af8c1b66dc1f (patch)
treea97e71fc324186995ee6f0e3c355a8439c626127 /common
parentb959aa9ee667730c61e973ce42bc8fb6afe2cf22 (diff)
Handle UHJ better with convolution reverb
It's now decoded to B-Format while being FFT'd, and processed as B-Format. Again, not that UHJ should really ever be used for convolution, but it's a valid format someone may want to use despite the overhead from converting it.
Diffstat (limited to 'common')
-rw-r--r--common/polyphase_resampler.h2
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;