aboutsummaryrefslogtreecommitdiffhomepage
path: root/libaf/af_resample.c
Commit message (Collapse)AuthorAge
* A/V sync: take audio filter buffers into accountGravatar uau2007-11-01
| | | | | | | | | | | | | | | | | | 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: Remove rational number implementationGravatar uau2007-11-01
| | | | | | | | Remove the mul/cancel/gcd functions and some related code. Use ff_gcd instead of the removed af_gcd in af_resample.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24917 b3059339-0415-0410-9bf9-f77b7e298cf2
* libaf: change filter input/output ratio calculationsGravatar uau2007-11-01
| | | | | | | | | | 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
* cosmetics: misc typo fixesGravatar diego2007-09-25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24615 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary unistd.h include.Gravatar diego2007-03-20
| | | | 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.Gravatar diego2007-03-20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22764 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memory leaks.Gravatar uau2007-02-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22197 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reinitialize some variables on af_resample reinit, fixes crashGravatar uau2006-11-19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21074 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix double free in af_resample when reinited with suitable parametersGravatar uau2006-11-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21033 b3059339-0415-0410-9bf9-f77b7e298cf2
* massive attack: mp_msg printf format fixesGravatar rathann2006-01-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
* always cancel down fractions (frac_t) to avoid overflows and playbackGravatar reimar2005-01-08
| | | | | | | | problems (e.g. when using resample and equalizer filters together, see http://mplayerhq.hu/pipermail/mplayer-users/2004-December/050058.html) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14434 b3059339-0415-0410-9bf9-f77b7e298cf2
* less namespace pollution #2 (prefixed globals in filter.c with af_filter_)Gravatar alex2004-12-29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14276 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing AFMT_ dependancyGravatar alex2004-12-27
| | | | 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.Gravatar diego2004-10-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13603 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l sig 11 bug reported by Fabian FranzGravatar anders2003-01-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8906 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l bug for float conversion control + feature fix in volume controlGravatar anders2003-01-10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8869 b3059339-0415-0410-9bf9-f77b7e298cf2
* New auto config for volume and resample and added support for float flag in ↵Gravatar anders2003-01-10
| | | | | | configuration git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8868 b3059339-0415-0410-9bf9-f77b7e298cf2
* sig 11 fix in reinit and resample + spelling error fixesGravatar anders2003-01-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8712 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changes includes:Gravatar anders2002-12-28
| | | | | | | | | | | | | | | | | - 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
* compiler warning fixesGravatar arpi2002-12-14
| | | | | | | based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8452 b3059339-0415-0410-9bf9-f77b7e298cf2
* New features:Gravatar anders2002-11-12
| | | | | | | | | | | | | | | | -- 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
* 10lGravatar anders2002-11-03
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8072 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding commandline options for filters and fixing stupid bug in cfgGravatar anders2002-10-31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7999 b3059339-0415-0410-9bf9-f77b7e298cf2
* made gcd() staticGravatar arpi2002-10-24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7895 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix for audio filters on big endian cpus. It's working now on Solaris SPARC &Gravatar jkeil2002-10-12
| | | | | | | x86 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7720 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding function for calculating the delay caused by the filtersGravatar anders2002-10-08
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7666 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changing frequency limit for resamplingGravatar anders2002-10-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7617 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding Support for non-reentrant audio filtersGravatar anders2002-10-06
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7616 b3059339-0415-0410-9bf9-f77b7e298cf2
* optimization of the FIR macros, extending outfreq range to 2..192khzGravatar arpi2002-10-05
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7603 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1lGravatar arpi2002-10-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7589 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100lGravatar arpi2002-10-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7588 b3059339-0415-0410-9bf9-f77b7e298cf2
* Changing to 32 bit aritmetics for countersGravatar anders2002-10-02
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7581 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding support for multiple audio streams and removing annoying message from ↵Gravatar anders2002-10-01
| | | | | | resample and format git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7572 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adding new audio output filter layer libafGravatar anders2002-10-01
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7569 b3059339-0415-0410-9bf9-f77b7e298cf2