summaryrefslogtreecommitdiffstats
path: root/libaf/af_equalizer.c
Commit message (Collapse)AuthorAgeFilesLines
* A/V sync: take audio filter buffers into accountuau2007-11-011-1/+1
| | | | | | | | | | | | | | | | | | Substract the delay caused by filter buffering when calculating currently playing audio position. This matters for af_scaletempo which buffers significant and varying amounts of data. For other current filters the effect is normally insignificant. Instead of the old time-based filter delay field (which was ignored) this version stores the per-filter delay in units of bytes input read without corresponding output. This allows the current scaletempo behavior where other filters before and after it can see the same nominal samplerate even though the real duration of the data varies; in this case the other filters can not know the delay they're causing in terms of real time. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24928 b3059339-0415-0410-9bf9-f77b7e298cf2
* libaf: change filter input/output ratio calculationsuau2007-11-011-2/+1
| | | | | | | | | | 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
* Remove unnecessary unistd.h include.diego2007-03-201-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22766 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename open to af_open so as not to conflict with a previous header definition.diego2007-03-201-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22764 b3059339-0415-0410-9bf9-f77b7e298cf2
* added dinamically calculated gain factor at output stage to avoid clipping ↵reynaldo2006-03-111-2/+23
| | | | | | on sane ranges git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17813 b3059339-0415-0410-9bf9-f77b7e298cf2
* We start with 0, so ch (channel number) == AF_NCH is invalid, too (not just >)reimar2006-03-081-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17775 b3059339-0415-0410-9bf9-f77b7e298cf2
* wrong output level calculation on af_equalizer leaded to low level output ↵reynaldo2005-12-011-1/+1
| | | | | | even with all octaves at 0db (default), patch by Corey Hickey bugfood-ml AT -fatooh/org- git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17069 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing AFMT_ dependancyalex2004-12-271-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2
* The full name of the GPL is GNU General Public License.diego2004-10-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13603 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changes includes:anders2002-12-281-37/+50
| | | | | | | | | | | | | | | | | - Improved runtime control system - 3 New filter panning, compressor/limiter and a noise gate - The compressor/limiter and the noise gate are not yet finished - The panning filter does combined mixing and channel routing and can be used to down-mix from stereo to mono (for example) - Improvements to volume and channel - volume now has a very good soft clipping using sin() - channel can handle generic routing of audio data - Conversion of all filters to handle floating point data - Cleanup of message printing - Fix for the sig 11 bug reported by Denes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8608 b3059339-0415-0410-9bf9-f77b7e298cf2
* New features:anders2002-11-121-10/+9
| | | | | | | | | | | | | | | | -- Support for runtime cpu detection -- Stand alone compile of libaf -- Unlimited number of channels (compiletime switch) -- Sample format defined by bit-fields -- New formats: float, A-Law and mu-law -- Format conversion set in human readable format i.e. format=4:us_be to set 32 bit unsigned big endian output -- Format reporting in human readable format -- Volume control has only one parameter for setting the volume i.e. volume=-10.0:1:0:1 to set atenuation = -10dB git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8168 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding equalizer filter + some cosmeticsanders2002-11-031-0/+217
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8074 b3059339-0415-0410-9bf9-f77b7e298cf2