From: Stefan H. <ho...@us...> - 2005-01-20 11:30:08
|
Update of /cvsroot/xine/xine-lib/src/xine-engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10005 Modified Files: audio_out.c Log Message: fixing equalizer gains reported by xine_get_param Index: audio_out.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-engine/audio_out.c,v retrieving revision 1.189 retrieving revision 1.190 diff -u -r1.189 -r1.190 --- audio_out.c 19 Dec 2004 20:24:30 -0000 1.189 +++ audio_out.c 20 Jan 2005 11:29:43 -0000 1.190 @@ -1679,7 +1679,7 @@ case AO_PROP_EQ_4000HZ: case AO_PROP_EQ_8000HZ: case AO_PROP_EQ_16000HZ: - ret = (100 * this->eq_gain[property - AO_PROP_EQ_30HZ]) / (1 << FP_FRBITS) ; + ret = (100.0 * this->eq_gain[property - AO_PROP_EQ_30HZ]) / (1 << FP_FRBITS) ; break; case AO_PROP_DISCARD_BUFFERS: @@ -1738,7 +1738,7 @@ int min_gain, max_gain, i; this->eq_gain[property - AO_PROP_EQ_30HZ] = EQ_REAL(((float)value / 100.0)) ; - + /* calc pregain, find out if any gain != 0.0 - enable eq if that is the case */ min_gain = EQ_REAL(0.0); max_gain = EQ_REAL(0.0); |