aboutsummaryrefslogtreecommitdiffstats
path: root/core/ambidefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/ambidefs.h')
-rw-r--r--core/ambidefs.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/core/ambidefs.h b/core/ambidefs.h
index 7f0f14ad..aa69b2e6 100644
--- a/core/ambidefs.h
+++ b/core/ambidefs.h
@@ -114,19 +114,8 @@ struct AmbiScale {
}
/* Retrieves per-order HF scaling factors for "upsampling" ambisonic data. */
- static std::array<float,MaxAmbiOrder+1> GetHFOrderScales(const uint order, const bool is3D) noexcept
- {
- if(order >= 3) return is3D ? DecoderHFScale3O : DecoderHFScale3O2D;
- if(order == 2) return is3D ? DecoderHFScale2O : DecoderHFScale2O2D;
- return is3D ? DecoderHFScale1O : DecoderHFScale1O2D;
- }
-
- static const std::array<float,MaxAmbiOrder+1> DecoderHFScale1O;
- static const std::array<float,MaxAmbiOrder+1> DecoderHFScale1O2D;
- static const std::array<float,MaxAmbiOrder+1> DecoderHFScale2O;
- static const std::array<float,MaxAmbiOrder+1> DecoderHFScale2O2D;
- static const std::array<float,MaxAmbiOrder+1> DecoderHFScale3O;
- static const std::array<float,MaxAmbiOrder+1> DecoderHFScale3O2D;
+ static std::array<float,MaxAmbiOrder+1> GetHFOrderScales(const uint src_order,
+ const uint dev_order) noexcept;
static const std::array<std::array<float,MaxAmbiChannels>,4> FirstOrderUp;
static const std::array<std::array<float,MaxAmbiChannels>,4> FirstOrder2DUp;