aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
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 /OpenAL32
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 'OpenAL32')
-rw-r--r--OpenAL32/Include/alMain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index ca97bff0..f24eb000 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -380,6 +380,7 @@ extern "C" {
struct Hrtf;
struct HrtfEntry;
+struct FrontStablizer;
struct Compressor;
@@ -777,6 +778,8 @@ struct ALCdevice_struct
ALsizei NumChannels;
} RealOut;
+ struct FrontStablizer *Stablizer;
+
struct Compressor *Limiter;
/* The average speaker distance as determined by the ambdec configuration