summaryrefslogtreecommitdiffstats
path: root/libaf/af_hrtf.h
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-11 14:01:29 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-11 14:01:29 +0000
commit1fd3c733d876abbbd0a3296105bdffae6c8a050c (patch)
treeccfe07c7b2d4d5c1ce3836afe43500cb4b8bcad9 /libaf/af_hrtf.h
parent7da5685bc3091c166ec2665789211cd2e81d0617 (diff)
downloadmpv-1fd3c733d876abbbd0a3296105bdffae6c8a050c.tar.bz2
mpv-1fd3c733d876abbbd0a3296105bdffae6c8a050c.tar.xz
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> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15125 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af_hrtf.h')
-rw-r--r--libaf/af_hrtf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libaf/af_hrtf.h b/libaf/af_hrtf.h
index 5f3639eb7d..7501cbf194 100644
--- a/libaf/af_hrtf.h
+++ b/libaf/af_hrtf.h
@@ -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 */