aboutsummaryrefslogtreecommitdiffstats
path: root/core/resampler_limits.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-03-31 09:37:30 -0700
committerChris Robinson <[email protected]>2021-03-31 09:37:30 -0700
commit35a0f2665f834c107e39ec2dcfc3d9ae0a0b33ce (patch)
tree5e889ba0dfb6664b9035c856b333f79c5aeecb88 /core/resampler_limits.h
parent8793055e666d2019dd48422c2e4ece1d3118e2f7 (diff)
Decode UHJ buffers to B-Format for mixing
This should also have an adjustment for the shelf filter. Although it's not clear what the appropriate adjustments should be.
Diffstat (limited to 'core/resampler_limits.h')
-rw-r--r--core/resampler_limits.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/resampler_limits.h b/core/resampler_limits.h
new file mode 100644
index 00000000..9d4cefda
--- /dev/null
+++ b/core/resampler_limits.h
@@ -0,0 +1,12 @@
+#ifndef CORE_RESAMPLER_LIMITS_H
+#define CORE_RESAMPLER_LIMITS_H
+
+/* Maximum number of samples to pad on the ends of a buffer for resampling.
+ * Note that the padding is symmetric (half at the beginning and half at the
+ * end)!
+ */
+constexpr int MaxResamplerPadding{48};
+
+constexpr int MaxResamplerEdge{MaxResamplerPadding >> 1};
+
+#endif /* CORE_RESAMPLER_LIMITS_H */