From f5603cba2359767a1c4be2713a9acd031e021d02 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Apr 2015 21:39:40 +0200 Subject: af: remove unused functions --- audio/filter/af.h | 2 -- audio/filter/tools.c | 32 -------------------------------- 2 files changed, 34 deletions(-) (limited to 'audio') diff --git a/audio/filter/af.h b/audio/filter/af.h index cecc3897b3..4c67208123 100644 --- a/audio/filter/af.h +++ b/audio/filter/af.h @@ -159,9 +159,7 @@ double af_calc_delay(struct af_stream *s); int af_test_output(struct af_instance *af, struct mp_audio *out); int af_from_dB(int n, float *in, float *out, float k, float mi, float ma); -int af_to_dB(int n, float *in, float *out, float k); int af_from_ms(int n, float *in, int *out, int rate, float mi, float ma); -int af_to_ms(int n, int *in, float *out, int rate); float af_softclip(float a); #endif /* MPLAYER_AF_H */ diff --git a/audio/filter/tools.c b/audio/filter/tools.c index 231477927f..8943f29f8b 100644 --- a/audio/filter/tools.c +++ b/audio/filter/tools.c @@ -40,24 +40,6 @@ int af_from_dB(int n, float* in, float* out, float k, float mi, float ma) return AF_OK; } -/* Convert from gain value to dB. Returns AF_OK if of and AF_ERROR if - * fail. gain=0 will become -200 dB. k is just a multiplier. */ -int af_to_dB(int n, float* in, float* out, float k) -{ - int i = 0; - // Sanity check - if(!in || !out) - return AF_ERROR; - - for(i=0;i