summaryrefslogtreecommitdiffstats
path: root/libaf/af_hrtf.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-09 03:59:52 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-09 03:59:52 +0000
commitca1970b25a6207b6283a3c10696dc0b0dad557f4 (patch)
treebc1c9985673a36ab0a83f7e5ef1ca8821a105d8e /libaf/af_hrtf.c
parent03485211a9e1c1cc8790afd471181bf67819cb7e (diff)
downloadmpv-ca1970b25a6207b6283a3c10696dc0b0dad557f4.tar.bz2
mpv-ca1970b25a6207b6283a3c10696dc0b0dad557f4.tar.xz
makes several libaf functions static coz they are not used outside their source files. Patch by Stefan Huehner, stefan AT huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18972 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af_hrtf.c')
-rw-r--r--libaf/af_hrtf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libaf/af_hrtf.c b/libaf/af_hrtf.c
index f8d14b318e..ff4e53aba8 100644
--- a/libaf/af_hrtf.c
+++ b/libaf/af_hrtf.c
@@ -74,7 +74,7 @@ static float conv(const int nx, const int nk, float *sx, float *sk,
}
/* Detect when the impulse response starts (significantly) */
-int pulse_detect(float *sx)
+static int pulse_detect(float *sx)
{
/* nmax must be the reference impulse response length (128) minus
s->hrflen */
@@ -90,7 +90,7 @@ int pulse_detect(float *sx)
/* Fuzzy matrix coefficient transfer function to "lock" the matrix on
a effectively passive mode if the gain is approximately 1 */
-inline float passive_lock(float x)
+static inline float passive_lock(float x)
{
const float x1 = x - 1;
const float ax1s = fabs(x - 1) * (1.0 / MATAGCLOCK);
@@ -100,7 +100,7 @@ inline float passive_lock(float x)
/* Unified active matrix decoder for 2 channel matrix encoded surround
sources */
-inline void matrix_decode(short *in, const int k, const int il,
+static inline void matrix_decode(short *in, const int k, const int il,
const int ir, const int decode_rear,
const int dlbuflen,
float l_fwr, float r_fwr,
@@ -207,7 +207,7 @@ inline void matrix_decode(short *in, const int k, const int il,
#endif
}
-inline void update_ch(af_hrtf_t *s, short *in, const int k)
+static inline void update_ch(af_hrtf_t *s, short *in, const int k)
{
const int fwr_pos = (k + FWRDURATION) % s->dlbuflen;
/* Update the full wave rectified total amplitude */