From 62269871aa7b52fa08ca08ea91b76ecfd61166e4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 23 Jun 2015 15:11:23 +0200 Subject: af: move af_from_dB() function to af_volume.c And also simplify it (it certainly had the most awkward API you could think of for such a simple function). --- audio/filter/tools.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'audio/filter/tools.c') diff --git a/audio/filter/tools.c b/audio/filter/tools.c index a465e7ec2a..4ebea64d4a 100644 --- a/audio/filter/tools.c +++ b/audio/filter/tools.c @@ -21,24 +21,6 @@ #include "common/common.h" #include "af.h" -/* Convert to gain value from dB. Returns AF_OK if of and AF_ERROR if - * fail. input <= -200dB will become 0 gain. */ -int af_from_dB(int n, float* in, float* out, float k, float mi, float ma) -{ - int i = 0; - // Sanity check - if(!in || !out) - return AF_ERROR; - - for(i=0;i