Mercurial > mplayer.hg
diff libaf/af_hrtf.h @ 15124:e267fad254fb
More HRTF enhancements
- a passive locking mechanism to enable the matrix to switch between active
and passive mode, which enhances the stereo image.
- a center front cancellation algorithm that damps the cross-talk if the
sound is coming predominantly from center (e.g. if there is dialogue).
These two new features should enhance the quality of surround downmix
noticeably.
Also a correction to the active gain control is included. The previous
implementation of Lt + Rt/Lt - Rt AGC should be fine in most cases, but the
calculation was inconsistent (gain unitarity is not guaranteed to be
preserved).
Signed off by Yue Shi Lai <ylai@users.sourceforge.net>
author | henry |
---|---|
date | Mon, 11 Apr 2005 14:01:29 +0000 |
parents | 71570687c1a3 |
children | 6ac1ece1f9fe |
line wrap: on
line diff
--- a/libaf/af_hrtf.h Mon Apr 11 13:31:55 2005 +0000 +++ b/libaf/af_hrtf.h Mon Apr 11 14:01:29 2005 +0000 @@ -4,6 +4,7 @@ /* Amplitude scaling factors */ #define M17_0DB 0.1414213562 +#define M9_03DB 0.3535533906 #define M6_99DB 0.4472135955 #define M4_77DB 0.5773502692 #define M3_01DB 0.7071067812 @@ -25,6 +26,10 @@ #define MATAGCTRIG 8.0 /* (Fuzzy) AGC trigger */ #define MATAGCDECAY 1.0 /* AGC baseline decay rate (1/samp.) */ +#define MATAGCLOCK 0.2 /* AGC range (around 1) where the + matrix behaves passively */ +#define MATCOMPGAIN 0.37 /* Cross talk compensation gain, + 0.50 - 0.55 is full cancellation. */ #define CFECHODELAY 360 /* Center front echo delay (samples) */ #define CFECHOAMPL M17_0DB /* Center front echo amplitude */