diff options
author | Chris Robinson <[email protected]> | 2017-07-31 23:49:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-07-31 23:49:48 -0700 |
commit | 8a735d0ba9db9b4b992172dc197396cc655264d5 (patch) | |
tree | 870ee7ed74e6028d92f3fc431c9b3c3243e08070 /Alc/ALc.c | |
parent | 88c0d22e7c72109fb5d7b2ee3276680d36971368 (diff) |
Add a front-stablizer config option for surround sound modes
This improves a stereo (front-left + front-right) sound "image" by generating a
front-center channel signal. Done correctly, it helps reduce the comb effects
and phase errors associated with using only two speakers to simulate center
sounds.
Note that it shouldn't be used if the front-center channel is already included
in the positional audio mix (the dialog effect is okay). In general, it may
actually be better to exclude the front-center channel from the positional
audio mix and use this to generate front-center output.
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2433,6 +2433,9 @@ static ALCvoid FreeDevice(ALCdevice *device) ambiup_free(device->AmbiUp); device->AmbiUp = NULL; + al_free(device->Stablizer); + device->Stablizer = NULL; + al_free(device->Limiter); device->Limiter = NULL; |