summaryrefslogtreecommitdiffstats
path: root/libaf/af_hrtf.h
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-10 08:47:16 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-04-10 08:47:16 +0000
commit108b3bc6a5860e8b34c7d4fa6f8ae7fd76c694c7 (patch)
tree73c9f5c5eac6e6419421d81d6631fc8de5d7d0be /libaf/af_hrtf.h
parentc59dbe2c6810432d4ca32ff018d8c7f694656c8d (diff)
downloadmpv-108b3bc6a5860e8b34c7d4fa6f8ae7fd76c694c7.tar.bz2
mpv-108b3bc6a5860e8b34c7d4fa6f8ae7fd76c694c7.tar.xz
HRTF filter updates:
- Bass compensation gain corrected (which was set too low), now the sound should be even more transparent - A (unified) dual axes active matrix decoder with adaptive steering - capable of decoding matrix surround encoded inputs, with stereo rear - capable of decoding matrix encoded rear center - Purely stereo mixing without unneccessary rear filter calculations - The decoding structure message is moved, because at the old place it gave incorrect messages. Patch by Yue Shi Lai <ylai@users.sourceforge.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15083 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af_hrtf.h')
-rw-r--r--libaf/af_hrtf.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libaf/af_hrtf.h b/libaf/af_hrtf.h
index 4320f4d77f..5f3639eb7d 100644
--- a/libaf/af_hrtf.h
+++ b/libaf/af_hrtf.h
@@ -1,3 +1,7 @@
+#define HRTF_MIX_51 0
+#define HRTF_MIX_STEREO 1
+#define HRTF_MIX_MATRIX2CH 2
+
/* Amplitude scaling factors */
#define M17_0DB 0.1414213562
#define M6_99DB 0.4472135955
@@ -13,9 +17,15 @@
#define BASSFILTFREQ 180 /* Bass compensation filter cut (Hz) */
#define BASSFILTLEN 193 /* Bass compensation filter length */
-#define BASSGAIN M4_77DB /* Bass compensation gain */
+#define BASSGAIN M_SQRT2 /* Bass compensation gain */
#define BASSCROSS 0.35 /* Bass cross talk */
+#define FWRDURATION 240 /* FWR average duration (samples) */
+#define MATREARDELAY 720 /* Matrix mode rear delay (samples) */
+
+#define MATAGCTRIG 8.0 /* (Fuzzy) AGC trigger */
+#define MATAGCDECAY 1.0 /* AGC baseline decay rate (1/samp.) */
+
#define CFECHODELAY 360 /* Center front echo delay (samples) */
#define CFECHOAMPL M17_0DB /* Center front echo amplitude */