From 7deec05ea0d14dd950715f232b9e7cb7183dd333 Mon Sep 17 00:00:00 2001 From: uau Date: Thu, 1 Nov 2007 06:52:01 +0000 Subject: libaf: change filter input/output ratio calculations Change the audio filters to use a double instead of rationals for the ratio of output to input size. The rationals could overflow when calculating the overall ratio of a filter chain and gave no real advantage compared to doubles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24916 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libaf/af.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libaf/af.h') diff --git a/libaf/af.h b/libaf/af.h index d41f9964fb..8f9ab9183b 100644 --- a/libaf/af.h +++ b/libaf/af.h @@ -65,7 +65,7 @@ typedef struct af_instance_s struct af_instance_s* next; struct af_instance_s* prev; double delay; // Delay caused by the filter [ms] - frac_t mul; /* length multiplier: how much does this instance change + double mul; /* length multiplier: how much does this instance change the length of the buffer. */ }af_instance_t; @@ -238,7 +238,7 @@ int af_resize_local_buffer(af_instance_t* af, af_data_t* data); /* Helper function used to calculate the exact buffer length needed when buffers are resized. The returned length is >= than what is needed */ -int af_lencalc(frac_t mul, af_data_t* data); +int af_lencalc(double mul, af_data_t* data); /** * \brief convert dB to gain value -- cgit v1.2.3