aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindDSound.cmake
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-02-08 00:05:29 -0800
committerChris Robinson <[email protected]>2018-02-08 00:05:29 -0800
commit4cd04f192d77d8e83a5d286e1edb1bcaf5f33ffd (patch)
tree8bb2dc34af38033c546335fc5cc7099886d740b6 /cmake/FindDSound.cmake
parentf5f996c14a7d7c46f0967eee01af9b6b77caa4a7 (diff)
Alter tha curve of the density-related delay scale
The delay scale is roughly linear with respect to room size, however the density is not linear with room size. The density is calculated by taking the room size cubed, then normalized by some factor. Unnormalizing the density and taking the cube root restores the original room size to use as a delay scale. The patch also alters the delay and all-pass line lengths to be based on a 1 meter room size, so the the room size recovered from the density acts as a direct multiple for the desired target length. Note that the room scale range is unchanged (5m to 50m), so the minimum and maximum delays are the same. It should also be noted that 50m may not be the correct room size for a density value of 1. A density value of 1 corresponds to an environment size of roughly 2.52m when converted from EAX (DENSITY_SCALE should be 16 rather than 125000), but sizes that low result in undesirable resonance in the feedback, indicating other changes are necessary for that to work.
Diffstat (limited to 'cmake/FindDSound.cmake')
0 files changed, 0 insertions, 0 deletions