summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2022-05-30 20:43:48 +0200
committerLars Knoll <lars.knoll@qt.io>2022-05-31 11:31:45 +0200
commit22409061c3d54a9b0c1add92ef0a1c826d3aa446 (patch)
tree4464cbb7d645b076ae41bebc7f743007b09019c5 /util
parent0eede8f08dc06e3c46eb2ffddd765fbc37184187 (diff)
Improve volume matching between Surround and Stereo modes
Stereo mode was quite a bit louder that Surround mode when sent to the same speaker array. This raises the volume of the surround decoder matrices by a factor of 1.5 which seems to approximately account for the volume difference between the modes. Change-Id: I6eb2db535449e17cf6d7c5e2c63cb60de3f34369 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'util')
-rw-r--r--util/adt_generate_qt.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/adt_generate_qt.m b/util/adt_generate_qt.m
index 8bb9497d3..c4b6af956 100644
--- a/util/adt_generate_qt.m
+++ b/util/adt_generate_qt.m
@@ -183,7 +183,9 @@ function channels = normalizeSN3D(channels)
else
factor = sqrt(2 * factorial(n - abs(m)) / (factorial(n + abs(m))));
endif
- channels(i) *= factor;
+ % There's an adjustment factor of 1.5 here, to match the volumes generated by the matrices
+ % here with what we get from a simple stereo decoding. The factor is heuristically determined
+ channels(i) *= factor*1.5;
endfor
end