aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-07-31 23:49:48 -0700
committerChris Robinson <[email protected]>2017-07-31 23:49:48 -0700
commit8a735d0ba9db9b4b992172dc197396cc655264d5 (patch)
tree870ee7ed74e6028d92f3fc431c9b3c3243e08070 /Alc/ALc.c
parent88c0d22e7c72109fb5d7b2ee3276680d36971368 (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 8c032ddf..b367dd1d 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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;