aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-13 14:17:48 -0800
committerChris Robinson <[email protected]>2023-01-13 14:17:48 -0800
commitcec6305901e6491b86dfc5d126d0e3520b43bfb9 (patch)
treee48caf954946df3ce40b321c7c8dbb84593a1998 /alc/alu.cpp
parente11cae32067a7ab84b51e5483470020251c943d5 (diff)
Don't use doubles for upsampling B-Format transforms
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index d0b8fbd5..cb732738 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -366,10 +366,10 @@ void UpsampleBFormatTransform(size_t coeffs_order,
{
for(size_t j{0};j < num_chans;++j)
{
- double sum{0.0};
+ float sum{0.0};
for(size_t k{0};k < num_chans;++k)
- sum += double{matrix1[i][k]} * matrix2[j][k];
- coeffs[j][i] = static_cast<float>(sum);
+ sum += matrix1[i][k] * matrix2[j][k];
+ coeffs[j][i] = sum;
}
}
}